mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
Add a missing break and a reminder.
This commit is contained in:
parent
b5c90ca7d9
commit
6b158a7d23
1 changed files with 2 additions and 1 deletions
|
|
@ -474,7 +474,7 @@ static void translate_program(struct r300_vertex_program *vp)
|
|||
for(i=0; i < operands; i++)
|
||||
src[i]=vpi->SrcReg[i];
|
||||
|
||||
if(operands == 3){
|
||||
if(operands == 3){ /* TODO: scalars */
|
||||
if( CMP_SRCS(src[1], src[2]) || CMP_SRCS(src[0], src[2]) ){
|
||||
o_inst->op=MAKE_VSF_OP(R300_VPI_OUT_OP_ADD, u_temp_i,
|
||||
VSF_FLAG_ALL, VSF_OUT_CLASS_TMP);
|
||||
|
|
@ -583,6 +583,7 @@ static void translate_program(struct r300_vertex_program *vp)
|
|||
vpi->Opcode=VP_OPCODE_MAX;
|
||||
src[1]=src[0];
|
||||
src[1].Negate=GL_TRUE;
|
||||
break;
|
||||
#else
|
||||
o_inst->op=MAKE_VSF_OP(R300_VPI_OUT_OP_MAX, vpi->DstReg.Index,
|
||||
t_dst_mask(vpi->DstReg.WriteMask), t_dst_class(vpi->DstReg.File));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue