nir: Move compute system value lowering to a separate pass
[mesa.git] / src / gallium / frontends / vallium / val_pipeline.c
index 136ac93fbc3b720aae4092ef472b50ccfba567de..779e2ecdc5f2f6cfea93a5daea135bc249600e26 100644 (file)
@@ -562,6 +562,7 @@ val_shader_compile_to_ir(struct val_pipeline *pipeline,
    if (stage == MESA_SHADER_FRAGMENT)
       val_lower_input_attachments(nir, false);
    NIR_PASS_V(nir, nir_lower_system_values);
+   NIR_PASS_V(nir, nir_lower_compute_system_values);
 
    NIR_PASS_V(nir, nir_lower_clip_cull_distance_arrays);
    nir_remove_dead_variables(nir, nir_var_uniform, NULL);