use PROGRAM_CONSTANT instead of PROGRAM_STATE_VAR when generating immediates/literals
authorBrian <brian.paul@tungstengraphics.com>
Fri, 18 Jan 2008 19:45:27 +0000 (12:45 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Fri, 18 Jan 2008 19:45:27 +0000 (12:45 -0700)
src/mesa/main/ffvertex_prog.c
src/mesa/main/texenvprogram.c

index 4a9a0cd975d4e9eb508b3fd26148a73d59ea08c4..04ece4cda8b4abc4ff89cd0078eff88b27f0c8eb 100644 (file)
@@ -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)
index d866d10017ee7442e019f09eb82c0090014a74b9..644b1f39c7c1de1d014d87915639a411c3866cbb 100644 (file)
@@ -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)