diff options
author | Michal Wajdeczko <[email protected]> | 2008-03-21 13:41:12 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2008-03-21 14:19:30 -0700 |
commit | 5f10438f2d9c739964cf53f04fee3190991325a1 (patch) | |
tree | 5e531a3d538d49d94753d1c69876528a8f386778 /src/mesa | |
parent | 31fe7cf5e3ca38441acb25215420afa6944226f3 (diff) |
[965] Add MVP code for position invariant vertex programs.
This fixes the arbvptorus demo.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_program.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_program.c b/src/mesa/drivers/dri/i965/brw_program.c index 8e8fea48e9f..f717b6f6c35 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; |