From: Rob Clark Date: Fri, 6 Apr 2018 19:06:36 +0000 (-0400) Subject: mesa/st/nir: fix naked lowering pass call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=becf2d1faccf7dc78ea1d25e756d42e678a5b8ad;p=mesa.git 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 --- 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); }