mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
asahi/genxml: Defeature uint/float
Unused, relic from panfrost and not in upstream genxml. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18922>
This commit is contained in:
parent
8eefda4ea9
commit
0302519f1c
1 changed files with 2 additions and 4 deletions
|
|
@ -229,7 +229,7 @@ class Field(object):
|
|||
type = 'uint64_t'
|
||||
elif self.type == 'int':
|
||||
type = 'int32_t'
|
||||
elif self.type in ['uint', 'uint/float', 'hex']:
|
||||
elif self.type in ['uint', 'hex']:
|
||||
type = 'uint32_t'
|
||||
elif self.type in self.parser.structs:
|
||||
type = 'struct ' + self.parser.gen_prefix(safe_name(self.type.upper()))
|
||||
|
|
@ -459,7 +459,7 @@ class Group(object):
|
|||
args.append(str(fieldref.start))
|
||||
args.append(str(fieldref.end))
|
||||
|
||||
if field.type in set(["uint", "uint/float", "address", "hex"]) | self.parser.enums:
|
||||
if field.type in set(["uint", "address", "hex"]) | self.parser.enums:
|
||||
convert = "__gen_unpack_uint"
|
||||
elif field.type == "int":
|
||||
convert = "__gen_unpack_sint"
|
||||
|
|
@ -519,8 +519,6 @@ class Group(object):
|
|||
print(' fprintf(fp, "%*s{}: 0x%" PRIx64 "\\n", indent, "", {});'.format(name, val))
|
||||
elif field.type == "hex":
|
||||
print(' fprintf(fp, "%*s{}: 0x%" PRIx32 "\\n", indent, "", {});'.format(name, val))
|
||||
elif field.type == "uint/float":
|
||||
print(' fprintf(fp, "%*s{}: 0x%X (%f)\\n", indent, "", {}, uif({}));'.format(name, val, val))
|
||||
else:
|
||||
print(' fprintf(fp, "%*s{}: %u\\n", indent, "", {});'.format(name, val))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue