nir: Move compute system value lowering to a separate pass
[mesa.git] / src / mesa / state_tracker / st_nir_builtins.c
index 77ec8725ff7b28b1dc9712f37ddb3406164c1fa7..cd078f3a5617d56055cd1416d8ce0b6906a2cb8a 100644 (file)
@@ -43,6 +43,7 @@ st_nir_finish_builtin_shader(struct st_context *st,
    NIR_PASS_V(nir, nir_split_var_copies);
    NIR_PASS_V(nir, nir_lower_var_copies);
    NIR_PASS_V(nir, nir_lower_system_values);
+   NIR_PASS_V(nir, nir_lower_compute_system_values);
 
    if (nir->options->lower_to_scalar) {
       nir_variable_mode mask =