asahi: don't do extra runtime validation for exact

silly.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31908>
This commit is contained in:
Alyssa Rosenzweig 2024-10-07 13:45:09 -04:00
parent cc8d50baf5
commit 3f6ff1b11e

View file

@ -307,7 +307,7 @@ class Group(object):
if field.type in ["uint", "hex", "address", "bool"] or field.type in self.parser.enums:
bits = (end - start + 1)
if bits < 64:
if bits < 64 and not field.exact:
# Add some nicer error checking
label = f"{self.label}::{name}"
bound = hex(1 << bits)