diff options
author | Pavel Ondračka <pavel.ondracka@gmail.com> | 2022-02-07 16:49:38 +0100 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2022-02-23 17:55:54 +0000 |
commit | 12a51c22cd3a8f0c4efb795c7466c8ed2b024d95 (patch) | |
tree | 932c920bfc4874af9c9ebc71d7d4fa511e671ed5 | |
parent | 6a179f897e659e80611e8101b7dca5374237bcf8 (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>
(cherry picked from commit 1f5330de3a6c54faf7a0ed7485c72a2ce40ac744)
-rw-r--r-- | .pick_status.json | 2 | ||||
-rw-r--r-- | src/gallium/drivers/r300/compiler/r3xx_vertprog.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/.pick_status.json b/.pick_status.json index b3a8930cf82..d2f99faed0d 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -4522,7 +4522,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 }, diff --git a/src/gallium/drivers/r300/compiler/r3xx_vertprog.c b/src/gallium/drivers/r300/compiler/r3xx_vertprog.c index f4ba0e1abae..93eec205ca4 100644 --- a/src/gallium/drivers/r300/compiler/r3xx_vertprog.c +++ b/src/gallium/drivers/r300/compiler/r3xx_vertprog.c @@ -703,10 +703,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; |