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:
@@ -721,11 +721,11 @@ class Parser(object):
|
|||||||
self.dump_reg_variants(regname, self.variant_regs[regname])
|
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()
|
p = Parser()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
p.parse(rnn_path, xml_path)
|
p.parse(args.rnn, args.xml)
|
||||||
except Error as e:
|
except Error as e:
|
||||||
print(e, file=sys.stderr)
|
print(e, file=sys.stderr)
|
||||||
exit(1)
|
exit(1)
|
||||||
@@ -749,12 +749,12 @@ def dump_c(rnn_path, xml_path, guard, func):
|
|||||||
|
|
||||||
def dump_c_defines(args):
|
def dump_c_defines(args):
|
||||||
guard = str.replace(os.path.basename(args.xml), '.', '_').upper()
|
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):
|
def dump_c_pack_structs(args):
|
||||||
guard = str.replace(os.path.basename(args.xml), '.', '_').upper() + '_STRUCTS'
|
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):
|
def dump_py_defines(args):
|
||||||
|
Reference in New Issue
Block a user