projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31fe7cf
)
[965] Add MVP code for position invariant vertex programs.
author
Michal Wajdeczko
<Michal.Wajdeczko@intel.com>
Fri, 21 Mar 2008 20:41:12 +0000
(13:41 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 21 Mar 2008 21:19:30 +0000
(14:19 -0700)
This fixes the arbvptorus demo.
src/mesa/drivers/dri/i965/brw_program.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_program.c
b/src/mesa/drivers/dri/i965/brw_program.c
index 8e8fea48e9f63f7c68951b00fbe2befa0a023f10..f717b6f6c35d045fce1695ac245245ffa0380f01 100644
(file)
--- 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;