projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f8b95a
)
handle IsPositionInvariant flag
author
Ben Skeggs
<skeggsb@gmail.com>
Tue, 1 Apr 2008 14:59:13 +0000
(08:59 -0600)
committer
Brian
<brian.paul@tungstengraphics.com>
Tue, 1 Apr 2008 14:59:41 +0000
(08:59 -0600)
src/mesa/state_tracker/st_program.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_program.c
b/src/mesa/state_tracker/st_program.c
index
101a6a4
..
4d1ef1b
100644
(file)
--- a/
src/mesa/state_tracker/st_program.c
+++ b/
src/mesa/state_tracker/st_program.c
@@
-34,6
+34,7
@@
#include "main/imports.h"
#include "main/mtypes.h"
#include "shader/prog_print.h"
+#include "shader/programopt.h"
#include "pipe/p_context.h"
#include "pipe/p_defines.h"
@@
-95,6
+96,9
@@
st_translate_vertex_program(struct st_context *st,
memset(&vs, 0, sizeof(vs));
+ if (stvp->Base.IsPositionInvariant)
+ _mesa_insert_mvp_code(st->ctx, &stvp->Base);
+
/*
* Determine number of inputs, the mappings between VERT_ATTRIB_x
* and TGSI generic input indexes, plus input attrib semantic info.