From becf2d1faccf7dc78ea1d25e756d42e678a5b8ad Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 6 Apr 2018 15:06:36 -0400 Subject: [PATCH] mesa/st/nir: fix naked lowering pass call 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 Reviewed-by: Jason Ekstrand --- 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.30.2