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@whitecape.org>
This commit is contained in:
Eric Anholt 2012-11-30 13:02:11 -08:00
parent 0e5f94a552
commit 1db9a72351

View file

@ -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;