mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02: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>
This commit is contained in:
parent
ef112db311
commit
1f5330de3a
1 changed files with 1 additions and 1 deletions
|
|
@ -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