summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-11-30 13:02:11 -0800
committerEric Anholt <[email protected]>2012-12-03 13:19:43 -0800
commit1db9a72351e15d826950fab45889cdabb54c80b4 (patch)
tree5817db47a84e86890f6090089221de18dfe63f2c /src/mesa/drivers
parent0e5f94a5528a2f2a09bb72a1012e88400783207d (diff)
i965/vp: Fix crashes with INTEL_DEBUG=vs.
The VP generation doesn't set up the output reg strings, so if you didn't happen to get these values as 0 on the stack, you'd lose. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index aaf932fa02d..544974a9fdd 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -2824,6 +2824,7 @@ vec4_visitor::vec4_visitor(struct brw_context *brw,
this->base_ir = NULL;
this->current_annotation = NULL;
+ memset(this->output_reg_annotation, 0, sizeof(this->output_reg_annotation));
this->c = c;
this->vp = &c->vp->program;