dawn-cmake/test/tint
Ben Clayton 8b30ca3efa tint/transform: Fix FoldTrivialSingleUseLet for abstracts
If the let initializer was an abstract numeric that was implicitly materialized to a concrete type, then we could inlining the initializer into the use without the implicit materialization cast.
This could lead to validation errors, and subtly different results in the program.

In this situation, add an explicit cast to keep the types the same before and after inlining.

Fixed: tint:1664
Change-Id: Icca980cf8af74673906ad6c681a6b07d0c1932fd
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/101160
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
2022-09-02 13:58:00 +00:00
..
access tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
array When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
benchmark tint/val: Make DXC validation output stable 2022-07-26 14:23:24 +00:00
buffer tint: Add and use new Std140 transform 2022-09-01 22:12:19 +00:00
bug tint/transform: Fix FoldTrivialSingleUseLet for abstracts 2022-09-02 13:58:00 +00:00
builtins When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
const tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
expressions tint: Add and use new Std140 transform 2022-09-01 22:12:19 +00:00
extensions/parsing tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
identifiers/underscore When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
layout/storage/mat2x2 tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
let/inferred When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
loops tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
out_of_order_decls When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
ptr_ref tint: const eval of binary add 2022-08-04 19:48:27 +00:00
samples tint: Implement const eval of binary multiply 2022-09-01 14:57:39 +00:00
shader_io Update `workgroup_size` to use `expression`. 2022-08-24 21:31:45 +00:00
shadowing When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
statements Emit deprecation for fallthrough. 2022-08-15 11:41:07 +00:00
struct When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
types When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
unicode tint/test-runner: Split expectations for FXC and DXC 2022-07-22 17:43:27 +00:00
unittest/reader/spirv test/tint: Regenerate SKIP expectations 2022-08-03 09:47:48 +00:00
var When emitting a MSL struct initializer emit the struct name. 2022-08-11 02:28:01 +00:00
vk-gl-cts test/tint: Regenerate SKIP expectations 2022-08-03 09:47:48 +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 tools: Replace copy-pasta scripts 2022-04-07 18:26:45 +00:00