dawn-cmake/test/bug/tint
Ben Clayton 165512c57e writer/hlsl: Emit UBO as an array of vector
Instead of a ConstantBuffer.

HLSL requires that each structure field in a UBO is 16 byte aligned.
WGSL has much looser constraints with its UBO field alignment rules.

Instead generate an array of uint4 vectors, and index into this, much
like we index into [RW]ByteAddressBuffers for SSBOs.

Extend the DecomposeStorageAccess transform to support uniforms too.
This has been renamed to DecomposeMemoryAccess.

Change-Id: I3868ff80af1ab3b3dddfbf5b969724cb87ef0744
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/55246
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
2021-06-18 21:15:25 +00:00
..
221.wgsl Add optional access to ptr<> 2021-06-04 22:17:37 +00:00
221.wgsl.expected.hlsl writer/hlsl: Simplify emission logic, clean up output 2021-06-16 09:19:36 +00:00
221.wgsl.expected.msl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
221.wgsl.expected.spvasm transform/spirv: Use InlinePointerLets & Simplify 2021-06-10 17:34:44 +00:00
221.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
292.wgsl resolver: Reenable VS validation for returning position 2021-06-16 09:50:11 +00:00
292.wgsl.expected.hlsl resolver: Reenable VS validation for returning position 2021-06-16 09:50:11 +00:00
292.wgsl.expected.msl resolver: Reenable VS validation for returning position 2021-06-16 09:50:11 +00:00
292.wgsl.expected.spvasm resolver: Reenable VS validation for returning position 2021-06-16 09:50:11 +00:00
292.wgsl.expected.wgsl resolver: Reenable VS validation for returning position 2021-06-16 09:50:11 +00:00
294.wgsl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
294.wgsl.expected.hlsl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
294.wgsl.expected.msl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
294.wgsl.expected.spvasm wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
294.wgsl.expected.wgsl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
403.wgsl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
403.wgsl.expected.hlsl writer/hlsl: Use the WrapArraysInStructs transform 2021-06-16 09:19:36 +00:00
403.wgsl.expected.msl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
403.wgsl.expected.spvasm test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
403.wgsl.expected.wgsl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
413.spvasm test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
413.spvasm.expected.hlsl spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
413.spvasm.expected.msl transform/msl: Run InlinePointerLets and Simplify 2021-06-18 09:47:23 +00:00
413.spvasm.expected.spvasm spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
413.spvasm.expected.wgsl spirv-reader: Set workgroup size, but not specializable 2021-06-17 22:40:43 +00:00
453.wgsl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
453.wgsl.expected.hlsl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
453.wgsl.expected.msl transform/msl: Run InlinePointerLets and Simplify 2021-06-18 09:47:23 +00:00
453.wgsl.expected.spvasm wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
453.wgsl.expected.wgsl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
492.wgsl Add optional access to ptr<> 2021-06-04 22:17:37 +00:00
492.wgsl.expected.hlsl writer/hlsl: Simplify emission logic, clean up output 2021-06-16 09:19:36 +00:00
492.wgsl.expected.msl transform/msl: Run InlinePointerLets and Simplify 2021-06-18 09:47:23 +00:00
492.wgsl.expected.spvasm transform/spirv: Use InlinePointerLets & Simplify 2021-06-10 17:34:44 +00:00
492.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
744.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
744.wgsl.expected.hlsl writer/hlsl: Emit UBO as an array of vector 2021-06-18 21:15:25 +00:00
744.wgsl.expected.msl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
744.wgsl.expected.spvasm Add optional access to ptr<> 2021-06-04 22:17:37 +00:00
744.wgsl.expected.wgsl wgsl: Deprecate [[access]] decorations 2021-06-04 20:41:47 +00:00
749.spvasm test: Move bug cases to sub-directories 2021-05-17 21:01:37 +00:00
749.spvasm.expected.hlsl writer/hlsl: Emit UBO as an array of vector 2021-06-18 21:15:25 +00:00
749.spvasm.expected.msl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
749.spvasm.expected.spvasm spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
749.spvasm.expected.wgsl spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
757.wgsl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
757.wgsl.expected.hlsl writer/hlsl: Emit UBO as an array of vector 2021-06-18 21:15:25 +00:00
757.wgsl.expected.msl spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
757.wgsl.expected.spvasm test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
757.wgsl.expected.wgsl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
764.wgsl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
764.wgsl.expected.hlsl writer/hlsl: Simplify emission logic, clean up output 2021-06-16 09:19:36 +00:00
764.wgsl.expected.msl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
764.wgsl.expected.spvasm test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
764.wgsl.expected.wgsl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
782.wgsl test: Move bug cases to sub-directories 2021-05-17 21:01:37 +00:00
782.wgsl.expected.hlsl writer/hlsl: Use the WrapArraysInStructs transform 2021-06-16 09:19:36 +00:00
782.wgsl.expected.msl Add transform/WrapArraysInStructs 2021-06-16 09:19:36 +00:00
782.wgsl.expected.spvasm test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
782.wgsl.expected.wgsl test: Generate expected output for all tests 2021-05-18 09:24:18 +00:00
804.spv test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
804.spv.expected.hlsl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
804.spv.expected.msl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
804.spv.expected.spvasm test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
804.spv.expected.wgsl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
807.spv test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
807.spv.expected.hlsl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
807.spv.expected.msl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
807.spv.expected.spvasm test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
807.spv.expected.wgsl test: Add bug cases taken from monorail 2021-06-10 18:49:14 +00:00
824.wgsl transform: remove VarForDynamicIndex transform. 2021-06-16 17:42:53 +00:00
824.wgsl.expected.hlsl transform: remove VarForDynamicIndex transform. 2021-06-16 17:42:53 +00:00
824.wgsl.expected.msl transform: remove VarForDynamicIndex transform. 2021-06-16 17:42:53 +00:00
824.wgsl.expected.spvasm transform: remove VarForDynamicIndex transform. 2021-06-16 17:42:53 +00:00
824.wgsl.expected.wgsl transform: remove VarForDynamicIndex transform. 2021-06-16 17:42:53 +00:00
825.wgsl transform: remove VarForDynamicIndex transform. 2021-06-16 17:42:53 +00:00
825.wgsl.expected.hlsl transform: remove VarForDynamicIndex transform. 2021-06-16 17:42:53 +00:00
825.wgsl.expected.msl transform: remove VarForDynamicIndex transform. 2021-06-16 17:42:53 +00:00
825.wgsl.expected.spvasm transform: remove VarForDynamicIndex transform. 2021-06-16 17:42:53 +00:00
825.wgsl.expected.wgsl transform: remove VarForDynamicIndex transform. 2021-06-16 17:42:53 +00:00
827.wgsl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
827.wgsl.expected.hlsl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
827.wgsl.expected.msl spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
827.wgsl.expected.spvasm wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
827.wgsl.expected.wgsl wgsl: Remove [[access]] and [[offset]] decorations 2021-06-16 09:19:36 +00:00
870.spvasm test: Add case for tint:870 2021-06-16 09:50:11 +00:00
870.spvasm.expected.hlsl writer/hlsl: Emit UBO as an array of vector 2021-06-18 21:15:25 +00:00
870.spvasm.expected.msl spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
870.spvasm.expected.spvasm spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00
870.spvasm.expected.wgsl spirv-reader: switch to HLSL-style pipeline IO 2021-06-17 09:10:04 +00:00