https://bugs.freedesktop.org/show_bug.cgi?id=106452
--- Comment #4 from Alex Smith <asm...@feralinteractive.com> ---
Derivatives are undefined after a discard in non-uniform control flow. SPIR-V's
OpKill says "all subsequent control flow is non-uniform", and derivatives are
only defined in uniform control flow.
Unfortunately differs from the D3D behaviour. radeonsi has a drirc option
"glsl_correct_derivatives_after_discard" to match the D3D behaviour. Would be
nice if somehow that behaviour could be exposed on RADV (an extension?) - in
some cases the workaround of delaying the discard to the end of the shader can
cause a significant perf hit.
--
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev