mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 09:44:13 +00:00
experiments/agx_1tri.py: Fix color component order
Signed-off-by: Asahi Lina <lina@asahilina.net>
This commit is contained in:
parent
ecb7de93c9
commit
e3b78fffc5
1 changed files with 2 additions and 1 deletions
|
@ -62,7 +62,8 @@ def unswizzle(addr, w, h, psize):
|
|||
((j & 8) << 3) | ((i & 8) << 4) |
|
||||
((j & 16) << 4) | ((i & 16) << 5) |
|
||||
((j & 32) << 5) | ((i & 32) << 6))
|
||||
new_data.append(data[toff + psize*off: toff + psize*(off+1)])
|
||||
r,g,b,a = data[toff + psize*off: toff + psize*(off+1)]
|
||||
new_data.append(bytes([b, g, r, a]))
|
||||
data = b"".join(new_data)
|
||||
iface.writemem(addr, data)
|
||||
|
||||
|
|
Loading…
Reference in a new issue