[Mesa-dev] [PATCH 1/6] i965/vs: Fix uninitialized shader pointer used in debug output.
Eric Anholt
eric at anholt.net
Fri Nov 30 13:24:15 PST 2012
---
src/mesa/drivers/dri/i965/brw_vec4_emit.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp b/src/mesa/drivers/dri/i965/brw_vec4_emit.cpp
index 12694e2..5637b22 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);
}
--
1.7.10.4
More information about the mesa-dev
mailing list