diff options
author | Brian <[email protected]> | 2008-01-18 12:45:27 -0700 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2008-09-24 10:13:46 -0700 |
commit | dff0b0e772185c359a1ad50afc7d5680745b1b1b (patch) | |
tree | 3062a87d5e415d04f9e842e4bb262a5ceb4f049c /src | |
parent | 9b7e5a51f49e842f4114545f5eb171a597c83a66 (diff) |
use PROGRAM_CONSTANT instead of PROGRAM_STATE_VAR when generating immediates/literals
(cherry picked from commit fdc8636bdc65deb0d95a62a51c8d9bca05bc6bb8)
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/texenvprogram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/texenvprogram.c b/src/mesa/main/texenvprogram.c index be0b69b1998..bcf91022244 100644 --- a/src/mesa/main/texenvprogram.c +++ b/src/mesa/main/texenvprogram.c @@ -595,7 +595,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) |