mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 11:28:05 +02:00
r5xx: Fix magic offsets for output fifo write masks.
Well, this sure explains a lot.
This commit is contained in:
parent
2708d7f700
commit
c60bdcf8a8
1 changed files with 2 additions and 2 deletions
|
|
@ -346,7 +346,7 @@ static void emit_alu(struct r500_fragment_program *fp, int counter, struct prog_
|
||||||
if (fpi->DstReg.File == PROGRAM_OUTPUT) {
|
if (fpi->DstReg.File == PROGRAM_OUTPUT) {
|
||||||
fp->inst[counter].inst0 = R500_INST_TYPE_OUT
|
fp->inst[counter].inst0 = R500_INST_TYPE_OUT
|
||||||
/* output_mask */
|
/* output_mask */
|
||||||
| (fpi->DstReg.WriteMask << 14);
|
| (fpi->DstReg.WriteMask << 15);
|
||||||
} else {
|
} else {
|
||||||
fp->inst[counter].inst0 = R500_INST_TYPE_ALU
|
fp->inst[counter].inst0 = R500_INST_TYPE_ALU
|
||||||
/* pixel_mask */
|
/* pixel_mask */
|
||||||
|
|
@ -397,7 +397,7 @@ static GLboolean parse_program(struct r500_fragment_program *fp)
|
||||||
dest = make_dest(fp, fpi->DstReg);
|
dest = make_dest(fp, fpi->DstReg);
|
||||||
|
|
||||||
pixel_mask = fpi->DstReg.WriteMask << 11;
|
pixel_mask = fpi->DstReg.WriteMask << 11;
|
||||||
output_mask = fpi->DstReg.WriteMask << 14;
|
output_mask = fpi->DstReg.WriteMask << 15;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (fpi->Opcode) {
|
switch (fpi->Opcode) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue