mesa/st/nir: fix naked lowering pass call
authorRob Clark <robdclark@gmail.com>
Fri, 6 Apr 2018 19:06:36 +0000 (15:06 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 9 Apr 2018 19:36:21 +0000 (15:36 -0400)
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@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/mesa/state_tracker/st_glsl_to_nir.cpp

index f2d4b184d674e8bd08d061ad3955f1399479584f..a5a284fb22abea3af321e666c7f8a4dfd36ebaeb 100644 (file)
@@ -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);
    }