dawn-cmake/test
Ben Clayton 97668c8c37 reader/spirv: Handle the MatrixStride decoration
Add `transform::DecomposeStridedMatrix`, which replaces matrix members of storage or uniform buffer structures, that have a [[stride]] decoration, into an array
of N column vectors.

This is required to correctly handle `mat2x2` matrices in UBOs, as std140 rules will expect a default stride of 16 bytes, when in WGSL the default structure layout expects a stride of 8 bytes.

Bug: tint:1047
Change-Id: If5ca3c6ec087bbc1ac31a8d9a657b99bf34042a4
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/59840
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2021-07-27 08:17:29 +00:00
..
access validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
array transform: Don't unroll arrays in DecomposeMemoryAccess 2021-07-16 19:47:44 +00:00
buffer transform: Don't unroll arrays in DecomposeMemoryAccess 2021-07-16 19:47:44 +00:00
bug writer/wgsl: Emit access mode on pointer types 2021-07-26 22:11:58 +00:00
expressions writer/hlsl: Support bitcast of vectors 2021-07-26 15:08:28 +00:00
intrinsics Implement texture_depth_multisampled_2d 2021-07-26 22:19:48 +00:00
layout/storage/mat2x2 reader/spirv: Handle the MatrixStride decoration 2021-07-27 08:17:29 +00:00
loops test: Add loop test cases 2021-06-21 19:04:56 +00:00
ptr_ref writer/wgsl: Emit access mode on pointer types 2021-07-26 22:11:58 +00:00
samples transform: Don't unroll arrays in DecomposeMemoryAccess 2021-07-16 19:47:44 +00:00
shader_io transform: Don't unroll arrays in DecomposeMemoryAccess 2021-07-16 19:47:44 +00:00
statements/for writer/wgsl: Fix printing of for-loops 2021-07-15 22:20:29 +00:00
struct writer/hlsl: Don't wrap arrays in structures 2021-07-05 15:20:57 +00:00
types Add support for converting bool to other types 2021-07-19 17:35:39 +00:00
var writer/hlsl: Don't wrap arrays in structures 2021-07-05 15:20:57 +00:00
vk-gl-cts test: Update E2E expected results 2021-07-26 22:11:58 +00:00
BUILD.gn reader/spirv: Handle the MatrixStride decoration 2021-07-27 08:17:29 +00:00
extract-spvasm.py Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
test-all.sh main: Replace --dawn-validation with --validate 2021-06-02 21:02:34 +00:00
test.wgsl.expected.hlsl writer/wgsl: Fix printing of for-loops 2021-07-15 22:20:29 +00:00
test.wgsl.expected.msl writer/wgsl: Fix printing of for-loops 2021-07-15 22:20:29 +00:00
test.wgsl.expected.spvasm writer/wgsl: Fix printing of for-loops 2021-07-15 22:20:29 +00:00
test.wgsl.expected.wgsl writer/wgsl: Fix printing of for-loops 2021-07-15 22:20:29 +00:00