summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_program.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-04-01 08:59:13 -0600
committerBrian <[email protected]>2008-04-01 08:59:41 -0600
commitf3a62372bf155d14876f98b1a085841607bb344c (patch)
tree5ad30eeee8bf3d54046bfd9d00a179321a7eb005 /src/mesa/state_tracker/st_program.c
parent8f8b95ae58c6e51f3bf0bc6ed2fa5ac8b9e82f1e (diff)
handle IsPositionInvariant flag
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
-rw-r--r--src/mesa/state_tracker/st_program.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c
index 101a6a48afd..4d1ef1bf3d3 100644
--- 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.