dawn-cmake/test/fxc_bugs/vector_assignment_in_loop
Ben Clayton 3242d3e8c9 writer/hlsl: Use vector write helper for dynamic indices
This uses FXC compilation failure mitigation for _any_ vector index assignment that has a non-constant index. FXC can still fall over if the loop calls a function that performs the dynamic index.

Use some vector swizzle logic to avoid branches in the helper.

Fixed: tint:980
Change-Id: I2a759d88a7d884bc61b4631cf57feb4acc8178de
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/57882
Auto-Submit: Ben Clayton <bclayton@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
2021-07-14 18:43:51 +00:00
..
loop_call_with_loop.wgsl Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
loop_call_with_loop.wgsl.expected.hlsl writer/hlsl: Use vector write helper for dynamic indices 2021-07-14 18:43:51 +00:00
loop_call_with_loop.wgsl.expected.msl reader/wgsl: Generate ForLoopStatements 2021-07-08 21:23:33 +00:00
loop_call_with_loop.wgsl.expected.spvasm Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
loop_call_with_loop.wgsl.expected.wgsl reader/wgsl: Generate ForLoopStatements 2021-07-08 21:23:33 +00:00
loop_call_with_no_loop.wgsl Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
loop_call_with_no_loop.wgsl.expected.hlsl writer/hlsl: Use vector write helper for dynamic indices 2021-07-14 18:43:51 +00:00
loop_call_with_no_loop.wgsl.expected.msl reader/wgsl: Generate ForLoopStatements 2021-07-08 21:23:33 +00:00
loop_call_with_no_loop.wgsl.expected.spvasm Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
loop_call_with_no_loop.wgsl.expected.wgsl reader/wgsl: Generate ForLoopStatements 2021-07-08 21:23:33 +00:00
loop_types_all.wgsl Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
loop_types_all.wgsl.expected.hlsl writer/hlsl: Use vector write helper for dynamic indices 2021-07-14 18:43:51 +00:00
loop_types_all.wgsl.expected.msl reader/wgsl: Generate ForLoopStatements 2021-07-08 21:23:33 +00:00
loop_types_all.wgsl.expected.spvasm Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
loop_types_all.wgsl.expected.wgsl reader/wgsl: Generate ForLoopStatements 2021-07-08 21:23:33 +00:00
loop_types_repeated.wgsl Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
loop_types_repeated.wgsl.expected.hlsl writer/hlsl: Use vector write helper for dynamic indices 2021-07-14 18:43:51 +00:00
loop_types_repeated.wgsl.expected.msl reader/wgsl: Generate ForLoopStatements 2021-07-08 21:23:33 +00:00
loop_types_repeated.wgsl.expected.spvasm Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
loop_types_repeated.wgsl.expected.wgsl reader/wgsl: Generate ForLoopStatements 2021-07-08 21:23:33 +00:00
loop_types_some.wgsl Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
loop_types_some.wgsl.expected.hlsl writer/hlsl: Use vector write helper for dynamic indices 2021-07-14 18:43:51 +00:00
loop_types_some.wgsl.expected.msl reader/wgsl: Generate ForLoopStatements 2021-07-08 21:23:33 +00:00
loop_types_some.wgsl.expected.spvasm Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
loop_types_some.wgsl.expected.wgsl reader/wgsl: Generate ForLoopStatements 2021-07-08 21:23:33 +00:00
no_loop.wgsl Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
no_loop.wgsl.expected.hlsl writer/hlsl: Use vector write helper for dynamic indices 2021-07-14 18:43:51 +00:00
no_loop.wgsl.expected.msl Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
no_loop.wgsl.expected.spvasm Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00
no_loop.wgsl.expected.wgsl Implement FXC workaround for vector access in loops resulting in failed loop unrolling 2021-06-29 22:07:44 +00:00