r5xx: Fix FRC.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 17 May 2008 16:27:35 +0000 (09:27 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Sat, 17 May 2008 16:27:35 +0000 (09:27 -0700)
This makes tri-frc work.
(Remind me again why I'm allowed near a compiler, lawl.)

src/mesa/drivers/dri/r300/r500_fragprog.c

index 01f6010544a60667a66cc2cf0dc9e89170be6ae3..8abdc26733b33af2ad445604c4351336c0c5eb82 100644 (file)
@@ -524,6 +524,7 @@ static GLboolean parse_program(struct r500_fragment_program *fp)
                                        | R500_ALPHA_SEL_A_SRC0 | MAKE_SWIZ_ALPHA_A(make_alpha_swizzle(fpi->SrcReg[0]));
                                fp->inst[counter].inst5 = R500_ALU_RGBA_OP_FRC
                                        | R500_ALU_RGBA_ADDRD(dest);
+                               break;
                        case OPCODE_LG2:
                                src[0] = make_src(fp, fpi->SrcReg[0]);
                                fp->inst[counter].inst0 = R500_INST_TYPE_ALU
@@ -724,6 +725,7 @@ static GLboolean parse_program(struct r500_fragment_program *fp)
                                        | R500_ALPHA_SEL_A_SRC0 | MAKE_SWIZ_ALPHA_A(make_alpha_swizzle(fpi->SrcReg[0]));
                                fp->inst[counter].inst5 = R500_ALU_RGBA_OP_SOP
                                        | R500_ALU_RGBA_ADDRD(dest);
+                               break;
                        case OPCODE_SUB:
                                src[0] = make_src(fp, fpi->SrcReg[0]);
                                src[1] = make_src(fp, fpi->SrcReg[1]);