dawn-cmake/test
Antonio Maiorano b293f51f83 Implement FXC workaround for vector access in loops resulting in failed loop unrolling
When indexing into vectors in a loop, FXC sometimes fails to determine
the max number of iterations when attempting to unroll the loop,
resulting in "error X3511: forced to unroll loop, but unrolling
failed.". We work around this by calling a function that sets the input
value at the input index into an inout vector. This seems to nudge FXC
enough for it to determine the number of loop iterations to unroll.

Bug: tint:534
Change-Id: I52cb209be29fcad8fbb91283c7be8c6e22e00656
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/56140
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
2021-06-29 22:07:44 +00:00
..
access validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
array validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
bug Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
expressions test: Move 'splat' tests to expressions, split up 2021-06-28 15:56:57 +00:00
fxc_bugs/vector_assignment_in_loop Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
intrinsics validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
loops test: Add loop test cases 2021-06-21 19:04:56 +00:00
ptr_ref validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
samples validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
shader_io validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
struct validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
types validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
var validation: compute shader must include 'workgroup_size' in its attributes 2021-06-29 18:39:44 +00:00
BUILD.gn writer/msl: Implement atomics 2021-06-29 11:53:15 +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