From 0e5f94a5528a2f2a09bb72a1012e88400783207d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 29 Nov 2012 16:49:36 -0800 Subject: i965/vs: Fix uninitialized shader pointer used in debug output. Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_vec4_emit.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/mesa') diff --git a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp index 12694e26846..5637b220672 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp @@ -141,6 +141,8 @@ vec4_generator::vec4_generator(struct brw_context *brw, intel = &brw->intel; vp = &c->vp->program; + shader = prog ? prog->_LinkedShaders[MESA_SHADER_VERTEX] : NULL; + p = rzalloc(mem_ctx, struct brw_compile); brw_init_compile(brw, p, mem_ctx); } -- cgit v1.2.3