minor code cleanup, no actual changes
authorTilman Sauerbeck <tilman@freedesktop.org>
Tue, 30 May 2006 18:49:20 +0000 (18:49 +0000)
committerTilman Sauerbeck <tilman@freedesktop.org>
Tue, 30 May 2006 18:49:20 +0000 (18:49 +0000)
src/mesa/drivers/dri/r300/r300_vertexprog.c

index 9e32cfcfef9049d0dd5fa4a4946e06c0143f200f..a405d4e1856a59137e815f1f3f740a043fce9ce5 100644 (file)
@@ -640,12 +640,7 @@ void r300_translate_vertex_shader(struct r300_vertex_program *vp)
                        o_inst->op=MAKE_VSF_OP(hw_op, t_dst_index(vp, &vpi->DstReg),
                                t_dst_mask(vpi->DstReg.WriteMask), t_dst_class(vpi->DstReg.File));
                        o_inst->src1=t_src(vp, &src[0]);
-                       o_inst->src2=MAKE_VSF_SOURCE(t_src_index(vp, &src[0]),
-                                       SWIZZLE_ONE, SWIZZLE_ONE,
-                                       SWIZZLE_ONE, SWIZZLE_ONE,
-                                       t_src_class(src[0].File), VSF_FLAG_NONE);
-
-
+                       o_inst->src2=ONE_SRC_0;
                        o_inst->src3=ZERO_SRC_0;
 #endif                 
 
@@ -726,10 +721,7 @@ void r300_translate_vertex_shader(struct r300_vertex_program *vp)
                        o_inst->op=MAKE_VSF_OP(hw_op, t_dst_index(vp, &vpi->DstReg),
                                t_dst_mask(vpi->DstReg.WriteMask), t_dst_class(vpi->DstReg.File));
                        o_inst->src1=t_src(vp, &src[0]);
-                       o_inst->src2=MAKE_VSF_SOURCE(t_src_index(vp, &src[0]),
-                                               SWIZZLE_ONE, SWIZZLE_ONE,
-                                               SWIZZLE_ONE, SWIZZLE_ONE,
-                                               t_src_class(src[0].File), VSF_FLAG_NONE);
+                       o_inst->src2=ONE_SRC_0;
                        o_inst->src3=MAKE_VSF_SOURCE(t_src_index(vp, &src[1]),
                                        t_swizzle(GET_SWZ(src[1].Swizzle, 0)),
                                        t_swizzle(GET_SWZ(src[1].Swizzle, 1)),