Skip to content

amd/llvm: Fix divergent descriptor indexing.

There are multiple LLVM passes that very much move the intrinsic using the descriptor outside of the loop, defeating the entire point of creating the loop.

Defeat the optimizer by splitting the break into a separate if-statement and putting an optimization barrier on the bool in between.

Closes: #2160 (closed) Fixes: 028ce527 "radv: Add non-uniform indexing lowering."

Edited by Bas Nieuwenhuizen

Merge request reports