dawn-cmake/test/tint/access/let
James Price ae39e6d628 spirv-reader: Declare multiuse constant composites
When an OpConstantComposite result is used by multiple instructions,
declare it as a module-scope `const` instead of inlining the constant
at each use site. This fixes an issue whereby the spirv-reader was
massively inflating the size of the WGSL it produces, which was caught
via an OOM fuzzer bug.

Bug: oss-fuzz:57795
Change-Id: Iac8c6a2147a7e2ebfddbaacae9fcb1dbe0b59e9d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/128881
Auto-Submit: James Price <jrprice@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: David Neto <dneto@google.com>
Commit-Queue: David Neto <dneto@google.com>
2023-04-25 19:16:25 +00:00
..
matrix.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
matrix.spvasm.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
matrix.spvasm.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
matrix.spvasm.expected.glsl tint/resolver: Evaluate const-expr swizzles 2022-07-07 17:49:02 +00:00
matrix.spvasm.expected.msl tint/resolver: Evaluate const-expr swizzles 2022-07-07 17:49:02 +00:00
matrix.spvasm.expected.spvasm tint/resolver: Evaluate const-expr swizzles 2022-07-07 17:49:02 +00:00
matrix.spvasm.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
matrix.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
matrix.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
matrix.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
matrix.wgsl.expected.glsl tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
matrix.wgsl.expected.msl tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
matrix.wgsl.expected.spvasm tint: Deprecated module-scope 'let' for 'const' 2022-06-29 00:55:36 +00:00
matrix.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
vector.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
vector.spvasm.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
vector.spvasm.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
vector.spvasm.expected.glsl tint/resolver: Evaluate const-expr swizzles 2022-07-07 17:49:02 +00:00
vector.spvasm.expected.msl tint/resolver: Evaluate const-expr swizzles 2022-07-07 17:49:02 +00:00
vector.spvasm.expected.spvasm tint/resolver: Evaluate const-expr swizzles 2022-07-07 17:49:02 +00:00
vector.spvasm.expected.wgsl spirv-reader: Declare multiuse constant composites 2023-04-25 19:16:25 +00:00
vector.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00
vector.wgsl.expected.dxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
vector.wgsl.expected.fxc.hlsl tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
vector.wgsl.expected.glsl tint/writer: Disable constant inlining for lets 2022-06-24 18:15:39 +00:00
vector.wgsl.expected.msl tint/msl: Preserve trailing vec3 padding 2023-02-27 20:21:03 +00:00
vector.wgsl.expected.spvasm tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
vector.wgsl.expected.wgsl Update src/tint unittests to new @stage format. 2022-06-07 13:55:34 +00:00