dawn-cmake/test
Ben Clayton 1a1c42ef12 reader/spirv: Partially handle MatrixStride on matrix arrays
SPIR-V spec states:
> Each structure-type member that is a matrix or array-of-matrices must have be decorated with a MatrixStride Decoration

As already pointed out in https://dawn-review.googlesource.com/c/tint/+/59840, we were not handling arrays-of-matrices.
To do this correctly, we need the ast::StrideDecoration to be placed on the Matrix type, which is a much bigger change to support.
For now, chase the type, and error if we have a custom MatrixStride on an array of matrices, otherwise drop the decoration.

Bug: tint:1049
Fixed: tint:1088
Change-Id: Idcb75b3df88040836a03a14e0ca402ebee7be9a7
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/60923
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: David Neto <dneto@google.com>
Auto-Submit: Ben Clayton <bclayton@google.com>
2021-08-06 19:48:32 +00:00
..
access validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
array Restore "MSL writer: make signed int overflow defined behaviour" 2021-07-30 18:59:06 +00:00
buffer spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
bug reader/spirv: Partially handle MatrixStride on matrix arrays 2021-08-06 19:48:32 +00:00
expressions spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
intrinsics spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
layout/storage/mat2x2 reader/spirv: Handle the MatrixStride decoration 2021-07-27 08:17:29 +00:00
loops Restore "MSL writer: make signed int overflow defined behaviour" 2021-07-30 18:59:06 +00:00
ptr_ref spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
samples spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
shader_io spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
statements/for Restore "MSL writer: make signed int overflow defined behaviour" 2021-07-30 18:59:06 +00:00
struct Restore "MSL writer: make signed int overflow defined behaviour" 2021-07-30 18:59:06 +00:00
switch writer/hlsl: Inline fallthrough case statements 2021-08-02 12:58:19 +00:00
types Add support for converting bool to other types 2021-07-19 17:35:39 +00:00
unittest/reader/spirv spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
var spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
vk-gl-cts spirv: Use generic transform to process shader IO 2021-08-05 17:34:19 +00:00
BUILD.gn Handle complex cases in Inspector::GenerateSamplerTargets 2021-07-27 15:42:51 +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