mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
r300: check for identical saturate mode when merging MOVs
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com> Reviewed-by: Filip Gawin <filip@gawin.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17560>
This commit is contained in:
parent
6286e48e5d
commit
2755faf938
1 changed files with 1 additions and 0 deletions
|
|
@ -953,6 +953,7 @@ static int merge_movs(struct radeon_compiler * c, struct rc_instruction * inst)
|
|||
if (cur->U.I.Opcode == RC_OPCODE_MOV &&
|
||||
cur->U.I.DstReg.File == orig_dst_file &&
|
||||
cur->U.I.DstReg.Index == orig_dst_reg &&
|
||||
cur->U.I.SaturateMode == inst->U.I.SaturateMode &&
|
||||
(cur->U.I.DstReg.WriteMask & orig_dst_wmask) == 0) {
|
||||
|
||||
/* We can merge the movs if one of them is from inline constant */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue