[Mesa-dev] [PATCH 03/16] mesa/st/nir: fix naked lowering pass call

Rob Clark robdclark at gmail.com
Sat Apr 7 16:13:35 UTC 2018


Not using the macro means no nir_validate in debug builds, resulting in
problems showing up only after later passes.

Signed-off-by: Rob Clark <robdclark at gmail.com>
---
 src/mesa/state_tracker/st_glsl_to_nir.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mesa/state_tracker/st_glsl_to_nir.cpp b/src/mesa/state_tracker/st_glsl_to_nir.cpp
index f2d4b184d67..a5a284fb22a 100644
--- a/src/mesa/state_tracker/st_glsl_to_nir.cpp
+++ b/src/mesa/state_tracker/st_glsl_to_nir.cpp
@@ -645,7 +645,7 @@ st_link_nir(struct gl_context *ctx,
          mask = (nir_variable_mode)(mask | nir_var_shader_out);
 
       nir_shader *nir = shader->Program->nir;
-      nir_lower_io_to_scalar_early(nir, mask);
+      NIR_PASS_V(nir, nir_lower_io_to_scalar_early, mask);
       st_nir_opts(nir);
    }
 
-- 
2.14.3



More information about the mesa-dev mailing list