mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
freedreno/isa: store max size for needed bitset
We will use this information later to create a correctly sized BITSET. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11321>
This commit is contained in:
parent
d29a6e2db5
commit
3d6a3b3c7c
1 changed files with 5 additions and 1 deletions
|
|
@ -400,6 +400,9 @@ class ISA(object):
|
|||
# Table of all bitsets:
|
||||
self.bitsets = {}
|
||||
|
||||
# Max needed bitsize for one instruction
|
||||
self.bitsize = 0
|
||||
|
||||
root = ElementTree.parse(xmlpath).getroot()
|
||||
self.parse_file(root)
|
||||
self.validate_isa()
|
||||
|
|
@ -435,6 +438,7 @@ class ISA(object):
|
|||
if b.size is not None:
|
||||
dbg("toplevel: " + b.name)
|
||||
self.roots[b.name] = b
|
||||
self.bitsize = max(self.bitsize, b.size)
|
||||
else:
|
||||
dbg("derived: " + b.name)
|
||||
self.bitsets[b.name] = b
|
||||
|
|
@ -487,4 +491,4 @@ class ISA(object):
|
|||
|
||||
# TODO we should probably be able to look at the contexts where
|
||||
# an expression is evaluated and verify that it doesn't have any
|
||||
# {VARNAME} references that would be unresolved at evaluation time
|
||||
# {VARNAME} references that would be unresolved at evaluation time
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue