Skip to content

nak,nir: Fix VK_KHR_zero_initialize_workgroup_memory

Faith Ekstrand requested to merge gfxstrand/mesa:nvk/fix-zero-init-wg-mem into main

We need to call nir_lower_compute_system_values after lowering workgroup memory initializers because that lowering pass uses gl_LocalInvocationIndex. We weren't catching this before because we had a bogus lowering for it in NAK. Also remove that to prevent this mistake in the future.

Merge request reports