mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-13 00:48:20 +02:00
u_format: Assert that array formats don't include BE swizzles.
Z32_FLOAT_S8X24_UINT and X32_S8X24_UINT are in fact the only non-bitmask formats that have BE swizzles specified, but sorting out those two is harder. Acked-by: Adam Jackson <ajax@redhat.com> Acked-by: Ilia Mirkin <imirkin@alum.mit.edu> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10505>
This commit is contained in:
parent
397e80762e
commit
c144f988e1
1 changed files with 4 additions and 0 deletions
|
|
@ -129,6 +129,10 @@ class Format:
|
|||
le_shift += channel.size
|
||||
|
||||
if be_channels:
|
||||
if self.is_array():
|
||||
print(
|
||||
"{} is an array format and should not include BE swizzles in the CSV".format(self.name))
|
||||
exit(1)
|
||||
self.be_channels = be_channels
|
||||
self.be_swizzles = be_swizzles
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue