diff options
author | Eric Anholt <[email protected]> | 2012-11-29 16:49:36 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-12-03 13:19:34 -0800 |
commit | 0e5f94a5528a2f2a09bb72a1012e88400783207d (patch) | |
tree | b083f0c89411684b75d645972379046d63aebfba | |
parent | 409730843f48493690e2beb5ba2e036dbfdf378c (diff) |
i965/vs: Fix uninitialized shader pointer used in debug output.
Reviewed-by: Kenneth Graunke <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vec4_emit.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |