dawn-cmake/test/tint
Stephen White 66abf3ed14 GLSL: don't emit structs w/runtime-sized arrays.
In GLSL, runtime-sized arrays are only valid in interface blocks, not
in structs. The existing code was attempting to avoid emitting structs
containing runtime-sized arrays but was confused by type aliases in
the AST resulting in arrays being missed.

The fix is to do the work on the semantic types instead, where type
aliases have been resolved.

Bug: tint:1339
Change-Id: I8c305ee9bddd75f975dd13f1d19d623d71410693
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/82360
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Stephen White <senorblanco@chromium.org>
2022-03-02 14:09:22 +00:00
..
access tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
array tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
benchmark GLSL: special-case BinaryOp::kModulo for floating point. 2022-02-28 21:15:02 +00:00
buffer tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
bug GLSL: don't emit structs w/runtime-sized arrays. 2022-03-02 14:09:22 +00:00
builtins GLSL: don't emit structs w/runtime-sized arrays. 2022-03-02 14:09:22 +00:00
expressions GLSL: special-case BinaryOp::kModulo for floating point. 2022-02-28 21:15:02 +00:00
identifiers/underscore tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
layout/storage/mat2x2 tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
let tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
loops tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
out_of_order_decls tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
ptr_ref tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
samples tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
shader_io tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
shadowing tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
statements tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
struct tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
types tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
unicode test: Move unicode e2e test to tint dir 2022-02-21 16:51:06 +00:00
unittest/reader/spirv GLSL: don't emit structs w/runtime-sized arrays. 2022-03-02 14:09:22 +00:00
var tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
vk-gl-cts GLSL: don't emit structs w/runtime-sized arrays. 2022-03-02 14:09:22 +00:00
BUILD.gn Delete Single-Plane External Texture Transform 2022-02-25 20:14:52 +00:00
extract-spvasm.py tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
test-all.sh tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00