i965: Don't print the GLSL IR if it doesn't exist

This commit is contained in:
Jason Ekstrand
2015-06-25 17:33:18 -07:00
parent 588acdb431
commit 4f5ef945e0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;
+1 -1
View File
@@ -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) {