dawn-cmake/test/tint
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
..
access spirv-reader: Declare multiuse constant composites 2023-04-25 19:16:25 +00:00
array [tint] do not emit space for binding group 0 2023-03-31 17:55:19 +00:00
benchmark test/tint: Update SKIP "expectations" 2023-03-02 09:25:40 +00:00
buffer [tint] do not emit space for binding group 0 2023-03-31 17:55:19 +00:00
bug spirv-reader: Declare multiuse constant composites 2023-04-25 19:16:25 +00:00
builtins [tint] do not emit space for binding group 0 2023-03-31 17:55:19 +00:00
const tint/writer/glsl: Set default precision to highp 2023-03-09 19:58:23 +00:00
diagnostic_filtering [tint] do not emit space for binding group 0 2023-03-31 17:55:19 +00:00
expressions tint: Add vec2(), vec3(), vec4() 2023-04-21 12:19:49 +00:00
extensions/parsing tint: Support multiple extensions per 'enable' 2023-03-15 05:06:57 +00:00
identifiers/underscore tint/msl: Fix emission of private variables 2023-03-20 21:46:01 +00:00
layout/storage/mat2x2 [tint] do not emit space for binding group 0 2023-03-31 17:55:19 +00:00
let/inferred tint/writer/glsl: Set default precision to highp 2023-03-09 19:58:23 +00:00
loops tint: Use MergeReturn transform in SPIR-V backend 2022-10-31 15:41:41 +00:00
out_of_order_decls tint/msl: Fix emission of private variables 2023-03-20 21:46:01 +00:00
ptr_ref [tint] do not emit space for binding group 0 2023-03-31 17:55:19 +00:00
samples [tint] do not emit space for binding group 0 2023-03-31 17:55:19 +00:00
shader_io Fix MSL invariant translation. 2023-04-24 19:41:41 +00:00
shadowing Move tint::transform::Robustness to a santizier transform 2023-03-02 20:48:48 +00:00
statements [tint] do not emit space for binding group 0 2023-03-31 17:55:19 +00:00
struct tint/transform: fix PromoteInitializersToLet for constant expressions 2022-12-09 12:34:36 +00:00
types [tint] do not emit space for binding group 0 2023-03-31 17:55:19 +00:00
unicode tint/writer/glsl: Set default precision to highp 2023-03-09 19:58:23 +00:00
unittest/reader/spirv tint: Fix HLSL texture queries and re-add textureNumLayers() 2023-03-08 02:48:34 +00:00
var tint/msl: Fix emission of private variables 2023-03-20 21:46:01 +00:00
vk-gl-cts [tint] do not emit space for binding group 0 2023-03-31 17:55:19 +00:00
extract-spvasm.py
parse_hlsl_errors.py tint: add parse_hlsl_errors.py to help triage hlsl errors 2022-10-04 19:48:41 +00:00
test-all.sh