i965: Don't try to print the GLSL IR if it has been freed
authorNeil Roberts <neil@linux.intel.com>
Fri, 26 Jun 2015 16:54:15 +0000 (17:54 +0100)
committerNeil Roberts <neil@linux.intel.com>
Mon, 29 Jun 2015 10:33:34 +0000 (11:33 +0100)
commitc0ca6c30eaf7f488f154c462a01a8945cb4a3103
tree9f4eff98321c11c6952a681410f5cb303c8c7441
parentdd9ceb0219f6ca7864940ee1961f1b1890d27cea
i965: Don't try to print the GLSL IR if it has been freed

Since commit 104c8fc2c2aa5621261f8 the GLSL IR will be freed if NIR is
being used. This was causing it to segfault if INTEL_DEBUG=wm is set.
This patch just makes it avoid dumping the GLSL IR in that case.

Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/brw_program.c