mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-03 06:30:24 +01:00
r300: fragprog tex instruction now take writemask into acount.
This commit is contained in:
parent
d85e8b088b
commit
32699696e3
1 changed files with 5 additions and 1 deletions
|
|
@ -951,6 +951,10 @@ static void emit_tex(struct r300_fragment_program *fp,
|
|||
if (REG_GET_TYPE(dest) == REG_TYPE_OUTPUT) {
|
||||
rdest = dest;
|
||||
dest = get_temp_reg_tex(fp);
|
||||
} else if (fpi->DstReg.WriteMask != WRITEMASK_XYZW) {
|
||||
/* in case write mask isn't XYZW */
|
||||
rdest = dest;
|
||||
dest = get_temp_reg_tex(fp);
|
||||
}
|
||||
hwdest =
|
||||
t_hw_dst(fp, dest, GL_TRUE,
|
||||
|
|
@ -1016,7 +1020,7 @@ static void emit_tex(struct r300_fragment_program *fp,
|
|||
|
||||
/* Copy from temp to output if needed */
|
||||
if (REG_GET_VALID(rdest)) {
|
||||
emit_arith(fp, PFS_OP_MAD, rdest, WRITEMASK_XYZW, dest,
|
||||
emit_arith(fp, PFS_OP_MAD, rdest, fpi->DstReg.WriteMask, dest,
|
||||
pfs_one, pfs_zero, 0);
|
||||
free_temp(fp, dest);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue