Re:Don't "optimize" conditional moves in shaders with mix()+...
by justsid on Sunday February 09, 2025 @04:19PM
(#42994105)
It depends. If the code flow is uniform for the warp, only side of the branch needs to be evaluated. But you could still end up with pessimistic register allocation because the compiler can’t know it is uniform. It’s sometimes weirdly hard to reason about how exactly code will end up executing on the GPU.
[ Parent
| on HN ]
There are no comments on this comment yet.