mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 14:40:10 +01:00
minor code cleanup, no actual changes
This commit is contained in:
parent
6be8127ea4
commit
1d0fa45bc1
1 changed files with 2 additions and 10 deletions
|
|
@ -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)),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue