freedreno/registers: Move 'unknown' last

If the builder is passed just a raw value, like an iova in the case of
turnip, we probably don't want to assert that it is all unknown bits.

This hasn't been a problem for the gallium driver, as the bo pointer is
first.  But became a problem for turnip with commit 2d6c15ad57 ("tu:
remove magic bo reg packing (use iovas directly)").

Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39029>
This commit is contained in:
Rob Clark 2025-12-17 16:15:33 -08:00 committed by Marge Bot
parent 6326ac4350
commit 2f3d6119fc

View file

@ -258,11 +258,11 @@ class Bitset(object):
# Requires using `fui()` or `_mesa_float_to_half()`
constexpr_mark = ""
if reg.bit_size == 64:
tab_to(" uint64_t", "unknown;")
tab_to(" uint64_t", "qword;")
tab_to(" uint64_t", "unknown;")
else:
tab_to(" uint32_t", "unknown;")
tab_to(" uint32_t", "dword;")
tab_to(" uint32_t", "unknown;")
print("};\n")
if not has_variants: