r300_fragprog: Remove dead code
authorNicolai Haehnle <nhaehnle@gmail.com>
Fri, 13 Jun 2008 18:03:17 +0000 (20:03 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sat, 14 Jun 2008 02:10:52 +0000 (04:10 +0200)
src/mesa/drivers/dri/r300/r300_fragprog.c

index df8ab47b0f8a9686668ed41c27141698f736b848..90fd9a7cfee7efd53cd35ead625cb77391d0b2aa 100644 (file)
@@ -1738,19 +1738,9 @@ static GLboolean parse_program(struct r300_fragment_program *fp)
                        /* src0.xyz1 -> temp
                         * DP4 dest, temp, src1
                         */
-#if 0
-                       temp[0] = get_temp_reg(fp);
-                       src[0].s_swz = SWIZZLE_ONE;
-                       emit_arith(fp, PFS_OP_MAD, temp[0], mask,
-                                  src[0], pfs_one, pfs_zero, 0);
-                       emit_arith(fp, PFS_OP_DP4, dest, mask,
-                                  temp[0], src[1], undef, flags);
-                       free_temp(fp, temp[0]);
-#else
                        emit_arith(fp, PFS_OP_DP4, dest, mask,
                                   swizzle(src[0], X, Y, Z, ONE), src[1],
                                   undef, flags);
-#endif
                        break;
                case OPCODE_DST:
                        src[0] = t_src(fp, fpi->SrcReg[0]);