Skip to content
Snippets Groups Projects
Commit 5e925419 authored by Neil Roberts's avatar Neil Roberts Committed by Emil Velikov
Browse files

i965: Don't try to print the GLSL IR if it has been freed


Since commit 104c8fc2 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's avatarBen Widawsky <ben@bwidawsk.net>
Reviewed-by: default avatarTapani Pälli <tapani.palli@intel.com>
(cherry picked from commit c0ca6c30)
parent 6b6e14ac
No related branches found
No related tags found
No related merge requests found
......@@ -599,10 +599,13 @@ brw_dump_ir(const char *stage, struct gl_shader_program *shader_prog,
struct gl_shader *shader, struct gl_program *prog)
{
if (shader_prog) {
fprintf(stderr,
"GLSL IR for native %s shader %d:\n", stage, shader_prog->Name);
_mesa_print_ir(stderr, shader->ir, NULL);
fprintf(stderr, "\n\n");
if (shader->ir) {
fprintf(stderr,
"GLSL IR for native %s shader %d:\n",
stage, shader_prog->Name);
_mesa_print_ir(stderr, shader->ir, NULL);
fprintf(stderr, "\n\n");
}
} else {
fprintf(stderr, "ARB_%s_program %d ir for native %s shader\n",
stage, prog->Id, stage);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment