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:
Emma Anholt
2021-06-01 13:37:56 -07:00
committed by Marge Bot
parent c8ef4f3615
commit 397e80762e
+1 -1
View File
@@ -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