Mesa (master): i965/vp: Fix crashes with INTEL_DEBUG=vs.
Eric Anholt
anholt at kemper.freedesktop.org
Mon Dec 3 22:25:15 UTC 2012
Module: Mesa
Branch: master
Commit: 1db9a72351e15d826950fab45889cdabb54c80b4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1db9a72351e15d826950fab45889cdabb54c80b4
Author: Eric Anholt <eric at anholt.net>
Date: Fri Nov 30 13:02:11 2012 -0800
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 <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 1 +
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 aaf932f..544974a 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;
More information about the mesa-commit
mailing list