Mesa (main): freedreno/rnndec: Fix use of undefined value_orig in the !ti case.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Oct 1 23:38:26 UTC 2021
Module: Mesa
Branch: main
Commit: bd8bfe43fa6bab2e0c4c37f778a19b21b82c8d2d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bd8bfe43fa6bab2e0c4c37f778a19b21b82c8d2d
Author: Emma Anholt <emma at anholt.net>
Date: Thu Sep 23 13:55:44 2021 -0700
freedreno/rnndec: Fix use of undefined value_orig in the !ti case.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360>
---
src/freedreno/rnn/rnndec.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/freedreno/rnn/rnndec.c b/src/freedreno/rnn/rnndec.c
index e2a738db817..ef2ff1002eb 100644
--- a/src/freedreno/rnn/rnndec.c
+++ b/src/freedreno/rnn/rnndec.c
@@ -166,10 +166,11 @@ char *rnndec_decodeval(struct rnndeccontext *ctx, struct rnntypeinfo *ti, uint64
int bitfieldsnum;
char *tmp;
const char *ctmp;
- uint64_t mask, value_orig;
+ uint64_t mask;
+
+ uint64_t value_orig = value;
if (!ti)
goto failhex;
- value_orig = value;
value = (value & typeinfo_mask(ti)) >> ti->low;
value <<= ti->shr;
More information about the mesa-commit
mailing list