modesetting: byte-swap ARGB cursor uploads on big-endian#2196
Conversation
|
@metux Could you prefix backports to release branches with something in the title, so it's easier to see what goes into master, and what goes into releases? For this patch in particular, I have the same question I asked upstream:
When I'll port this to master, I wonder if we should do something like this once when first setting the cursor: |
d5bc6aa to
7c65dc5
Compare
Good idea. I'll check how to add that to my MPBT tooling.
Well, I haven't seen any GPU operating in BE yet - so I'd assume they're all in LE (otherwise we already would have needed some extra swapping for those). But i'm open to renaming this macro to something like cpu_to_gpu().
IMHO, that wouldn't tell us whether GPU is operating in opposite endian. Just detecting corrupt BUS link or GPU memory. |
Guess it's probably fine then. If the default kernel config usually forbids different endianness between cpu and gpu, I assumed there were some be machines with be gpu's.
No need, if it's doing
Oops, you're right :) |
Part-of: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/2156