summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2008-05-27 01:01:46 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2008-05-27 01:36:25 -0700
commita242b331c6567af20d3cad804664bda30e1e9586 (patch)
tree7f65ac2101a83ea578ddc83a488d34d6d818724b
parent9412aee4dc6a94ffc3d4043e8c843ba051f5507b (diff)
r5xx: Just a few small LIT fixes.
Still broken; will fix tomorrow.
-rw-r--r--src/mesa/drivers/dri/r300/r500_fragprog.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/drivers/dri/r300/r500_fragprog.c b/src/mesa/drivers/dri/r300/r500_fragprog.c
index 2315830a59..39f035bf1c 100644
--- a/src/mesa/drivers/dri/r300/r500_fragprog.c
+++ b/src/mesa/drivers/dri/r300/r500_fragprog.c
@@ -720,8 +720,8 @@ static GLboolean parse_program(struct r500_fragment_program *fp)
counter++;
/* Second instruction */
fp->inst[counter].inst0 = R500_INST_TYPE_ALU | (R500_WRITEMASK_AB << 11);
- fp->inst[counter].inst1 = R500_RGB_ADDR0(get_temp(fp, 0));
- fp->inst[counter].inst2 = R500_ALPHA_ADDR0(get_temp(fp, 0)) | R500_ALPHA_ADDR1(src[1]);
+ fp->inst[counter].inst1 = R500_RGB_ADDR0(get_temp(fp, 0)) | R500_RGB_ADDR1(src[1]);
+ fp->inst[counter].inst2 = R500_ALPHA_ADDR0(get_temp(fp, 0));
/* Select [z, z, z, y] */
temp_swiz = 2 | (2 << 3) | (2 << 6);
fp->inst[counter].inst3 = R500_ALU_RGB_SEL_A_SRC0
@@ -746,8 +746,8 @@ static GLboolean parse_program(struct r500_fragment_program *fp)
| MAKE_SWIZ_RGB_B(R500_SWIZ_RGB_ONE);
fp->inst[counter].inst4 = R500_ALPHA_OP_MAD
| R500_ALPHA_ADDRD(get_temp(fp, 1))
- | R500_ALPHA_SEL_A_SRC0 | R500_ALPHA_SWIZ_A_B
- | R500_ALPHA_SEL_B_SRC0 | R500_ALPHA_SWIZ_B_A;
+ | R500_ALPHA_SEL_A_SRC0 | R500_ALPHA_SWIZ_A_A
+ | R500_ALPHA_SEL_B_SRC0 | R500_ALPHA_SWIZ_B_B;
fp->inst[counter].inst5 = R500_ALU_RGBA_OP_MAD
| R500_ALU_RGBA_ADDRD(get_temp(fp, 1))
| MAKE_SWIZ_RGBA_C(R500_SWIZ_RGB_ZERO)
@@ -788,7 +788,7 @@ static GLboolean parse_program(struct r500_fragment_program *fp)
| MAKE_SWIZ_ALPHA_C(R500_SWIZZLE_ZERO);
counter++;
/* Final instruction */
- emit_mov(fp, counter, fpi, get_temp(fp, 0), 1672, dest);
+ emit_mov(fp, counter, fpi, get_temp(fp, 0), SWIZZLE_NOOP, dest);
break;
case OPCODE_LRP:
/* src0 * src1 + INV(src0) * src2