projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04c0241
)
pan/gen_pack: Use 1U for unpacking log2 to avoid undefined behaviour
author
Icecream95
<ixn@disroot.org>
Wed, 14 Jul 2021 00:48:11 +0000
(12:48 +1200)
committer
Marge Bot
<eric+marge@anholt.net>
Wed, 14 Jul 2021 23:20:13 +0000
(23:20 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11869>
src/panfrost/lib/gen_pack.py
patch
|
blob
|
history
diff --git
a/src/panfrost/lib/gen_pack.py
b/src/panfrost/lib/gen_pack.py
index
8f9411a
..
72cc644
100644
(file)
--- a/
src/panfrost/lib/gen_pack.py
+++ b/
src/panfrost/lib/gen_pack.py
@@
-613,7
+613,7
@@
class Group(object):
elif field.modifier[0] == "shr":
suffix = " << {}".format(field.modifier[1])
if field.modifier[0] == "log2":
- prefix = "1 << "
+ prefix = "1
U
<< "
decoded = '{}{}({}){}'.format(prefix, convert, ', '.join(args), suffix)