dawn-cmake/test/tint
Antonio Maiorano 66d6668372 Implement discard semantics
Implement new transform UnwindDiscardFunctions that replaces discard
statements with setting a module-level bool, adds a check and return for
this bool after every function call that may discard, and finally
invokes a single function that executes a discard from top-level
functions.

Regenerated tests and remove HLSL ones that used to fail FXC because it
had difficulty with discard.

Bug: tint:1478
Bug: chromium:1118
Change-Id: I09d680f59e2d5d0cad907bfbbdd426aae76d4bf3
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/84221
Reviewed-by: James Price <jrprice@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2022-03-28 20:51:32 +00:00
..
access tint->dawn: Shuffle source tree in preperation of merging repos 2022-02-21 15:19:07 +00:00
array wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
benchmark Normalize DEPS to ease merging with Dawn 2022-03-28 18:01:02 +00:00
buffer wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
bug Implement discard semantics 2022-03-28 20:51:32 +00:00
builtins Normalize DEPS to ease merging with Dawn 2022-03-28 18:01:02 +00:00
expressions Implement mixed vector-scalar float % operator 2022-03-28 14:36:31 +00:00
identifiers/underscore wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
layout/storage/mat2x2 wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
let wgsl: Separate struct members with commas 2022-03-28 14:31:22 +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 wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
ptr_ref wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
samples wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
shader_io wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
shadowing wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
statements wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
struct wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
types wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
unicode test: Move unicode e2e test to tint dir 2022-02-21 16:51:06 +00:00
unittest/reader/spirv Implement discard semantics 2022-03-28 20:51:32 +00:00
var wgsl: Separate struct members with commas 2022-03-28 14:31:22 +00:00
vk-gl-cts Implement discard semantics 2022-03-28 20:51:32 +00:00
BUILD.gn Implement discard semantics 2022-03-28 20:51:32 +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