From: Jason Ekstrand Date: Fri, 26 Jun 2015 00:33:18 +0000 (-0700) Subject: i965: Don't print the GLSL IR if it doesn't exist X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f5ef945e010422ab96b13573cd002a5cc82d4ca;p=mesa.git i965: Don't print the GLSL IR if it doesn't exist --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index 2c0ff961182..b43dafc798c 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -4015,7 +4015,7 @@ brw_wm_fs_emit(struct brw_context *brw, if (prog) shader = (brw_shader *) prog->_LinkedShaders[MESA_SHADER_FRAGMENT]; - if (unlikely(INTEL_DEBUG & DEBUG_WM)) + if (unlikely(INTEL_DEBUG & DEBUG_WM) && shader->base.ir) brw_dump_ir("fragment", prog, &shader->base, &fp->Base); int st_index8 = -1, st_index16 = -1; diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp index a5c686ceaaf..05f188fe116 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp @@ -1882,7 +1882,7 @@ brw_vs_emit(struct brw_context *brw, st_index = brw_get_shader_time_index(brw, prog, &c->vp->program.Base, ST_VS); - if (unlikely(INTEL_DEBUG & DEBUG_VS)) + if (unlikely(INTEL_DEBUG & DEBUG_VS) && shader->base.ir) brw_dump_ir("vertex", prog, &shader->base, &c->vp->program.Base); if (brw->intelScreen->compiler->scalar_vs) {