isaspec: Print a useful error for an assert I hit.

Trying to write new isaspec xml makes me wish for rust's anyhow crate.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38559>
This commit is contained in:
Emma Anholt 2025-11-19 09:14:02 -08:00 committed by Marge Bot
parent 670ded35c1
commit e8e6e42e71

View file

@ -201,6 +201,8 @@ class BitSetCase(object):
self.fields[f.name] = f
for field in xml.findall('field'):
if 'name' not in field.attrib:
print("missing field name in {}".format(self.name))
dbg("{}.{}".format(self.name, field.attrib['name']))
f = BitSetField(bitset.isa, field)
update_field_mask(self, f)