u_format: Use the nice helper for reversing an array.
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:
@@ -136,7 +136,7 @@ class Format:
|
||||
self.be_swizzles = le_swizzles
|
||||
|
||||
be_shift = 0
|
||||
for channel in self.be_channels[3::-1]:
|
||||
for channel in reversed(self.be_channels):
|
||||
channel.shift = be_shift
|
||||
be_shift += channel.size
|
||||
|
||||
|
||||
Reference in New Issue
Block a user