nir: Move compute system value lowering to a separate pass
[mesa.git] / src / gallium / frontends / clover / nir / invocation.cpp
index 032fb03cfd8bf84e4468cd255f9783d2f52f1652..f57472052222bed771774668b5833b31ac7ebf1f 100644 (file)
@@ -169,6 +169,8 @@ module clover::nir::spirv_to_nir(const module &mod, const device &dev,
                  spirv_options.global_addr_format);
 
       NIR_PASS_V(nir, nir_lower_system_values);
+      NIR_PASS_V(nir, nir_lower_compute_system_values);
+
       if (compiler_options->lower_int64_options)
          NIR_PASS_V(nir, nir_lower_int64);