mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
pco, pygen: amend bitfield assertion messages
Signed-off-by: Simon Perretta <simon.perretta@imgtec.com> Acked-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32258>
This commit is contained in:
parent
58337957ac
commit
84766a9157
1 changed files with 2 additions and 2 deletions
|
|
@ -293,12 +293,12 @@ def bit_set(name, pieces, fields):
|
|||
|
||||
_pieces = {}
|
||||
for (piece, spec) in pieces:
|
||||
assert piece not in _pieces.keys(), f'Duplicate bit piece "{n}" in bit set "{name}".'
|
||||
assert piece not in _pieces.keys(), f'Duplicate bit piece "{piece}" in bit set "{name}".'
|
||||
_pieces[piece] = bit_piece(piece, *spec)
|
||||
|
||||
_fields = {}
|
||||
for (field, spec) in fields:
|
||||
assert field not in _fields.keys(), f'Duplicate bit field "{n}" in bit set "{name}".'
|
||||
assert field not in _fields.keys(), f'Duplicate bit field "{field}" in bit set "{name}".'
|
||||
_fields[field] = bit_field(_name, field, _pieces, *spec)
|
||||
|
||||
bs = BitSet(_name, name, _pieces, _fields)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue