dawn-cmake/test/tint
James Price 744d0eb4aa tint: Use "demote-to-helper" semantics for discard
Discard statements no longer affect the behavior or uniformity
analysis. Update the resolver, validator, and several tests to reflect
this.

Some E2E tests were removed as they had loops that are now considered
to be infinite.

Use the DemoteToHelper transform to emulate the correct semantics on
platforms where discard is (or may) terminate the invocation in a
manner that would affect derivative operations.

We no longer need the UnwindDiscardFunctions transform for HLSL, which
already implements the correct semantics. However, we still run the
DemoteToHelper transform for the HLSL backend due to issues with FXC's
handling of discard statements (see crbug.com/tint/1118).

Fixed: tint:1723
Change-Id: Ib49ff187919ae81c4af8675e1b66acd57e2ff7d2
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/109003
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: James Price <jrprice@google.com>
2022-11-09 19:58:59 +00:00
..
access
array Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
benchmark Make reserved words an error. 2022-11-07 16:15:55 +00:00
buffer Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
bug tint: Use "demote-to-helper" semantics for discard 2022-11-09 19:58:59 +00:00
builtins Tint/transform: Fix insertBits polyfill for HLSL 2022-11-09 01:54:08 +00:00
const
expressions tint/transform: Polyfill bit-shift with RHS modulo 2022-11-03 19:15:17 +00:00
extensions/parsing wgsl: Print abstract-floats with full precision. 2022-10-12 19:13:38 +00:00
identifiers/underscore tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
layout/storage/mat2x2 Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
let/inferred
loops tint: Use MergeReturn transform in SPIR-V backend 2022-10-31 15:41:41 +00:00
out_of_order_decls
ptr_ref Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
samples Tint/transform: make AddBlockAttribute always do wrapping if possible 2022-11-02 02:25:38 +00:00
shader_io wgsl: Print abstract-floats with full precision. 2022-10-12 19:13:38 +00:00
shadowing tint: remove LoopToForLoop and FoldTrivialSingleUseLets transforms for HLSL and GLSL 2022-09-19 14:05:21 +00:00
statements tint: Use "demote-to-helper" semantics for discard 2022-11-09 19:58:59 +00:00
struct Update internals to initializer instead of constructor. 2022-10-20 13:38:28 +00:00
types
unicode
unittest/reader/spirv tint: Use "demote-to-helper" semantics for discard 2022-11-09 19:58:59 +00:00
var Rename StorageClass to AddressSpace. 2022-10-03 14:05:23 +00:00
vk-gl-cts tint: Use "demote-to-helper" semantics for discard 2022-11-09 19:58:59 +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