mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 20:40:09 +01:00
broadcom/cle: Fix error path of missing a "type" in the XML.
We try to emit a #error and continue so that you can debug the missing type at C compile time, but were missing a couple of definitions in that path (sigh, python).
This commit is contained in:
parent
3d8ad50370
commit
7dedfd9660
1 changed files with 2 additions and 1 deletions
|
|
@ -166,6 +166,7 @@ class Field(object):
|
|||
return
|
||||
else:
|
||||
print("#error unhandled type: %s" % self.type)
|
||||
type = "uint32_t"
|
||||
|
||||
print(" %-36s %s%s;" % (type, self.name, dim))
|
||||
|
||||
|
|
@ -362,7 +363,7 @@ class Group(object):
|
|||
args.append(str(field.fractional_size))
|
||||
convert = "__gen_unpack_sfixed"
|
||||
else:
|
||||
print("/* unhandled field %s, type %s */\n" % (name, field.type))
|
||||
print("/* unhandled field %s, type %s */\n" % (field.name, field.type))
|
||||
s = None
|
||||
|
||||
print(" values->%s = %s(%s);" % \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue