From: Eric Anholt Date: Wed, 21 Jul 2010 00:19:57 +0000 (-0700) Subject: ir_to_mesa: Validate the linked shaders as well. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1124e5a3cbba839ffd968742bfa3295c8de5498c;p=mesa.git ir_to_mesa: Validate the linked shaders as well. This caught the failure in cloning of ir_dereference_record. --- diff --git a/src/mesa/shader/ir_to_mesa.cpp b/src/mesa/shader/ir_to_mesa.cpp index 5803960d444..352b496625d 100644 --- a/src/mesa/shader/ir_to_mesa.cpp +++ b/src/mesa/shader/ir_to_mesa.cpp @@ -2037,6 +2037,8 @@ get_mesa_program(GLcontext *ctx, struct gl_shader_program *shader_program, default: assert(!"should not be reached"); break; } + validate_ir_tree(shader->ir); + prog = ctx->Driver.NewProgram(ctx, target, 1); if (!prog) return NULL;