panfrost: gen_pack: Allow enum/define values expressed in hexadecimal
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6797>
This commit is contained in:

committed by
Alyssa Rosenzweig

parent
51d5d44953
commit
fd0941c573
@@ -602,7 +602,7 @@ class Group(object):
|
||||
class Value(object):
|
||||
def __init__(self, attrs):
|
||||
self.name = attrs["name"]
|
||||
self.value = int(attrs["value"])
|
||||
self.value = int(attrs["value"], 0)
|
||||
|
||||
class Parser(object):
|
||||
def __init__(self):
|
||||
|
Reference in New Issue
Block a user