mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-30 05:00:32 +01:00
r300: fix transformation of abs modifiers with negate
It is being overwritten by the memset. Just set the only remaining
member RelAddr explicitly.
Signed-off-by: Pavel Ondračka <pavel.ondracka@gmail.com>
Reviewed-by: Filip Gawin <filip.gawin@zoho.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14915>
(cherry picked from commit 1f5330de3a)
This commit is contained in:
parent
3b1563dcfb
commit
b8e9c345d0
2 changed files with 2 additions and 2 deletions
|
|
@ -292,7 +292,7 @@
|
|||
"description": "r300: fix transformation of abs modifiers with negate",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -688,10 +688,10 @@ static int transform_nonnative_modifiers(
|
|||
new_inst->U.I.SrcReg[1] = inst->U.I.SrcReg[i];
|
||||
new_inst->U.I.SrcReg[1].Negate ^= RC_MASK_XYZW;
|
||||
|
||||
memset(&inst->U.I.SrcReg[i], 0, sizeof(inst->U.I.SrcReg[i]));
|
||||
inst->U.I.SrcReg[i].File = RC_FILE_TEMPORARY;
|
||||
inst->U.I.SrcReg[i].Index = temp;
|
||||
inst->U.I.SrcReg[i].Swizzle = RC_SWIZZLE_XYZW;
|
||||
inst->U.I.SrcReg[i].RelAddr = 0;
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue