summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorTilman Sauerbeck <tilman@freedesktop.org>2006-05-30 18:49:20 +0000
committerTilman Sauerbeck <tilman@freedesktop.org>2006-05-30 18:49:20 +0000
commit1d0fa45bc1f54b073e026f494f5fd39b838ac976 (patch)
tree32e246656fee22985165d8bee2472dbca36dfd30 /src/mesa
parent6be8127ea4151a4f3da933d6b2cca917ed3dbfad (diff)
minor code cleanup, no actual changes
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/r300/r300_vertexprog.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/r300/r300_vertexprog.c b/src/mesa/drivers/dri/r300/r300_vertexprog.c
index 9e32cfcfef..a405d4e185 100644
--- a/src/mesa/drivers/dri/r300/r300_vertexprog.c
+++ b/src/mesa/drivers/dri/r300/r300_vertexprog.c
@@ -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)),