Skip to content

nvk/nak: remove dead shader outputs

Dave Airlie requested to merge airlied/mesa:nvk-nak-fix-fs-output-removal into main

This is an issue disguised as an MR, there might be a better solution.

nvk/nak: remove dead shader outputs

piglit fbo-drawbuffers-maxtargets dies with zink inside nak with
fbo-drawbuffers-maxtargets: ../src/nouveau/compiler/nak_nir.c:1046: nak_nir_lower_fs_outputs: Assertion `nir->info.outputs_written & BITFIELD_BIT(var->data.location)' failed.

It appears the common runtime dead var removal doesn't know to remove
the unused outputs vars, so just explicitly remove them.

Merge request reports