mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
freedreno/registers: Pass full args to dump_c()
Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27124>
This commit is contained in:
parent
670e93bfb5
commit
15f94505ba
1 changed files with 4 additions and 4 deletions
|
|
@ -721,11 +721,11 @@ class Parser(object):
|
|||
self.dump_reg_variants(regname, self.variant_regs[regname])
|
||||
|
||||
|
||||
def dump_c(rnn_path, xml_path, guard, func):
|
||||
def dump_c(args, guard, func):
|
||||
p = Parser()
|
||||
|
||||
try:
|
||||
p.parse(rnn_path, xml_path)
|
||||
p.parse(args.rnn, args.xml)
|
||||
except Error as e:
|
||||
print(e, file=sys.stderr)
|
||||
exit(1)
|
||||
|
|
@ -749,12 +749,12 @@ def dump_c(rnn_path, xml_path, guard, func):
|
|||
|
||||
def dump_c_defines(args):
|
||||
guard = str.replace(os.path.basename(args.xml), '.', '_').upper()
|
||||
dump_c(args.rnn, args.xml, guard, lambda p: p.dump())
|
||||
dump_c(args, guard, lambda p: p.dump())
|
||||
|
||||
|
||||
def dump_c_pack_structs(args):
|
||||
guard = str.replace(os.path.basename(args.xml), '.', '_').upper() + '_STRUCTS'
|
||||
dump_c(args.rnn, args.xml, guard, lambda p: p.dump_structs())
|
||||
dump_c(args, guard, lambda p: p.dump_structs())
|
||||
|
||||
|
||||
def dump_py_defines(args):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue