summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-18 12:45:27 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-18 12:45:27 -0700
commitfdc8636bdc65deb0d95a62a51c8d9bca05bc6bb8 (patch)
treec90339efd1c55a87966b3014b27a0e73bdbcbca7
parente44bdcf9789caf9971c3c94605fbff7ce66af7ba (diff)
use PROGRAM_CONSTANT instead of PROGRAM_STATE_VAR when generating immediates/literals
-rw-r--r--src/mesa/main/ffvertex_prog.c2
-rw-r--r--src/mesa/main/texenvprogram.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/ffvertex_prog.c b/src/mesa/main/ffvertex_prog.c
index 4a9a0cd975..04ece4cda8 100644
--- a/src/mesa/main/ffvertex_prog.c
+++ b/src/mesa/main/ffvertex_prog.c
@@ -436,7 +436,7 @@ static struct ureg register_const4f( struct tnl_program *p,
idx = _mesa_add_unnamed_constant( p->program->Base.Parameters, values, 4,
&swizzle );
ASSERT(swizzle == SWIZZLE_NOOP);
- return make_ureg(PROGRAM_STATE_VAR, idx);
+ return make_ureg(PROGRAM_CONSTANT, idx);
}
#define register_const1f(p, s0) register_const4f(p, s0, 0, 0, 1)
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c
index d866d10017..644b1f39c7 100644
--- a/src/mesa/main/texenvprogram.c
+++ b/src/mesa/main/texenvprogram.c
@@ -582,7 +582,7 @@ static struct ureg register_const4f( struct texenv_fragment_program *p,
idx = _mesa_add_unnamed_constant( p->program->Base.Parameters, values, 4,
&swizzle );
ASSERT(swizzle == SWIZZLE_NOOP);
- return make_ureg(PROGRAM_STATE_VAR, idx);
+ return make_ureg(PROGRAM_CONSTANT, idx);
}
#define register_scalar_const(p, s0) register_const4f(p, s0, s0, s0, s0)