mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-16 02:10:25 +01:00
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:
parent
670ded35c1
commit
e8e6e42e71
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue