dawn-cmake/test
Antonio Maiorano 11d09f2fe7 HLSL: force FXC to never unroll loops
Emit the "[loop]" attribute on "for" and "while" so that FXC does not
attempt to unroll them. This is to work around an FXC bug where it fails
to unroll loops with gradient operations.

FXC ostensibly unrolls such loops because gradient operations require
uniform control flow, and loops that have varying iterations may
possibly not be uniform. Tint will eventually validate that control flow
is indeed uniform, so forcing FXC to avoid unrolling in these cases
should be fine.

Bug: tint:1112
Change-Id: I10077f8b62fbbb230a0003f3864c75a8fe0e1d18
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/69880
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
2021-11-18 13:50:12 +00:00
..
access GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
array HLSL: force FXC to never unroll loops 2021-11-18 13:50:12 +00:00
buffer HLSL: force FXC to never unroll loops 2021-11-18 13:50:12 +00:00
bug HLSL: force FXC to never unroll loops 2021-11-18 13:50:12 +00:00
expressions GLSL: implement inf, nan. 2021-11-18 13:11:43 +00:00
intrinsics GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
layout/storage/mat2x2 HLSL: force FXC to never unroll loops 2021-11-18 13:50:12 +00:00
let GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
loops HLSL: force FXC to never unroll loops 2021-11-18 13:50:12 +00:00
matrix/constructor/elements GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
ptr_ref GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
samples HLSL: force FXC to never unroll loops 2021-11-18 13:50:12 +00:00
shader_io GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
statements HLSL: force FXC to never unroll loops 2021-11-18 13:50:12 +00:00
struct GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
types GLSL: add .expected.glsl files for all tests. 2021-11-16 15:15:36 +00:00
unittest/reader/spirv Add more SPIR-V reader unit test samples 2021-09-27 20:55:53 +00:00
var HLSL: force FXC to never unroll loops 2021-11-18 13:50:12 +00:00
vk-gl-cts spirv-reader: Sink pointer-to-vector-component 2021-11-04 19:55:57 +00:00
BUILD.gn Add MultiplanarExternalTextureTransform and Tests 2021-11-17 12:10:16 +00:00
extract-spvasm.py Add --dump-spirv option to tint_unittests 2021-05-05 09:46:31 +00:00
test-all.sh main: Replace --dawn-validation with --validate 2021-06-02 21:02:34 +00:00