Skip to content

ir3: Do not set clip/cull mask if no one writes clip/cull

What does this MR do and why?

This may happen when undefined value is written into gl_ClipDistance, then it gets optimized out by nir_opt_undef.

Fixes GPU faults in Tropico 5 (D3D11) on at least A750.

Merge request reports