diff options
author | Pavel Ondračka <pavel.ondracka@gmail.com> | 2022-02-07 16:49:38 +0100 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-02-08 22:54:02 +0000 |
commit | 1f5330de3a6c54faf7a0ed7485c72a2ce40ac744 (patch) | |
tree | 23f79cb9a8588e63d6d2b77e7526a98caadf188f | |
parent | ef112db31181090034cfae7dc2d2084e0ca4dfc9 (diff) |
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>
-rw-r--r-- | src/gallium/drivers/r300/compiler/r3xx_vertprog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/compiler/r3xx_vertprog.c b/src/gallium/drivers/r300/compiler/r3xx_vertprog.c index 559a8ff54e7..3626d2913c4 100644 --- a/src/gallium/drivers/r300/compiler/r3xx_vertprog.c +++ b/src/gallium/drivers/r300/compiler/r3xx_vertprog.c @@ -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; |