diff options
author | Michal Wajdeczko <[email protected]> | 2008-03-21 13:41:12 -0700 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-06-10 16:13:06 +0800 |
commit | 76d6edcc385d7ae188255c95251f3ecd1e29150c (patch) | |
tree | 4be3bb089e5aa5eb6165aa3cb2506927eaf54409 /src | |
parent | 98d6c671f597256645697cb8806a057c3038819b (diff) |
[965] Add MVP code for position invariant vertex programs.
This fixes the arbvptorus demo.
(cherry picked from commit 5f10438f2d9c739964cf53f04fee3190991325a1)
Diffstat (limited to 'src')
-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 752fe49bcbf..389fd89d0c9 100644 --- a/src/mesa/drivers/dri/i965/brw_program.c +++ b/src/mesa/drivers/dri/i965/brw_program.c @@ -125,6 +125,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; |