Skip to content

ir3: disallow moving memory writes over discard

Writes to global memory should not be moved over discard, otherwise we could have unintended side-effects or lack of side-effects where they should be observed.

Fixes tests:

 dEQP-VK.rasterization.frag_side_effects.color_at_beginning.kill
 dEQP-VK.rasterization.frag_side_effects.color_at_end.kill

I don't see any custom logic handling this for kills in ir3_sched.

Merge request reports