pass src->NegateBase as-is in t_src() now, as the flags are equivalent to r300's...
authorTilman Sauerbeck <tilman@freedesktop.org>
Wed, 31 May 2006 17:37:23 +0000 (17:37 +0000)
committerTilman Sauerbeck <tilman@freedesktop.org>
Wed, 31 May 2006 17:37:23 +0000 (17:37 +0000)
src/mesa/drivers/dri/r300/r300_vertexprog.c

index a405d4e1856a59137e815f1f3f740a043fce9ce5..a2af12e6bef9a2b8b07cd04fb1e44019198743ee 100644 (file)
@@ -269,14 +269,16 @@ static unsigned long t_src_index(struct r300_vertex_program *vp, struct prog_src
 
 static unsigned long t_src(struct r300_vertex_program *vp, struct prog_src_register *src)
 {
-       
+       /* src->NegateBase uses the NEGATE_ flags from program_instruction.h,
+        * which equal our VSF_FLAGS_ values, so it's safe to just pass it here.
+        */
        return MAKE_VSF_SOURCE(t_src_index(vp, src),
                                t_swizzle(GET_SWZ(src->Swizzle, 0)),
                                t_swizzle(GET_SWZ(src->Swizzle, 1)),
                                t_swizzle(GET_SWZ(src->Swizzle, 2)),
                                t_swizzle(GET_SWZ(src->Swizzle, 3)),
                                t_src_class(src->File),
-                               src->NegateBase ? VSF_FLAG_ALL : VSF_FLAG_NONE) | (src->RelAddr << 4);
+                               src->NegateBase) | (src->RelAddr << 4);
 }
 
 static unsigned long t_src_scalar(struct r300_vertex_program *vp, struct prog_src_register *src)