[Mesa-dev] [PATCH] i965/vs: Fix use of uninitialized memory with INTEL_DEBUG=vs.
Kenneth Graunke
kenneth at whitecape.org
Sun Dec 2 20:27:36 PST 2012
This regressed when I split out vec4_generator.
---
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.8.0.1
More information about the mesa-dev
mailing list