From: Michal Wajdeczko Date: Fri, 21 Mar 2008 20:41:12 +0000 (-0700) Subject: [965] Add MVP code for position invariant vertex programs. X-Git-Tag: mesa-7.8~5391 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f10438f2d9c739964cf53f04fee3190991325a1;p=platform%2Fupstream%2Fmesa.git [965] Add MVP code for position invariant vertex programs. This fixes the arbvptorus demo. --- diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index 8e8fea4..f717b6f 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -124,6 +124,9 @@ static void brwProgramStringNotify( GLcontext *ctx, struct brw_vertex_program *vp = (struct brw_vertex_program *)brw->vertex_program; if (p == vp) brw->state.dirty.brw |= BRW_NEW_VERTEX_PROGRAM; + if (p->program.IsPositionInvariant) { + _mesa_insert_mvp_code(ctx, &p->program); + } p->id = brw->program_id++; p->param_state = p->program.Base.Parameters->StateFlags;