summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2008-05-19 00:00:08 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2008-05-19 00:00:08 -0700
commitc60bdcf8a80b7307add8e09aca2356591c86fbcd (patch)
tree583777c8a941d9660a280cce44518c2f0c5adbb3
parent2708d7f7005c6a65980f5eb0377a9fd7917bce51 (diff)
r5xx: Fix magic offsets for output fifo write masks.
Well, this sure explains a lot.
-rw-r--r--src/mesa/drivers/dri/r300/r500_fragprog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/r300/r500_fragprog.c b/src/mesa/drivers/dri/r300/r500_fragprog.c
index ef8717e387..4fc5a676a5 100644
--- a/src/mesa/drivers/dri/r300/r500_fragprog.c
+++ b/src/mesa/drivers/dri/r300/r500_fragprog.c
@@ -346,7 +346,7 @@ static void emit_alu(struct r500_fragment_program *fp, int counter, struct prog_
if (fpi->DstReg.File == PROGRAM_OUTPUT) {
fp->inst[counter].inst0 = R500_INST_TYPE_OUT
/* output_mask */
- | (fpi->DstReg.WriteMask << 14);
+ | (fpi->DstReg.WriteMask << 15);
} else {
fp->inst[counter].inst0 = R500_INST_TYPE_ALU
/* pixel_mask */
@@ -397,7 +397,7 @@ static GLboolean parse_program(struct r500_fragment_program *fp)
dest = make_dest(fp, fpi->DstReg);
pixel_mask = fpi->DstReg.WriteMask << 11;
- output_mask = fpi->DstReg.WriteMask << 14;
+ output_mask = fpi->DstReg.WriteMask << 15;
}
switch (fpi->Opcode) {