freedreno/rnndec: Fix use of undefined value_orig in the !ti case.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6360>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user