libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.15k stars 1.82k forks source link

(ARM) Colours inverted in menu when using XMB on Raspian #7718

Open RiRilot opened 5 years ago

RiRilot commented 5 years ago

First and foremost consider this:

Description

When using the XMB menu driver on Retroarch installed on top of Raspian, red colours are blue, blue are red. Games display the correct colours bu the menu does not.

Expected behavior

I would expect the colours to display the same as they do in lakka or on X86 version.

Actual behavior

My blue background wallpapers are displaying as red

Steps to reproduce the bug

Change menu driver to XMB Turn off shader pipeline Try to display a wallpaper

Bisect Results

Immedicately after install.

Version/Commit

You can find this information under Information/System Information

Environment information

orbea commented 5 years ago

Can you try the current master and see if that is any better? If not, do any of the previous versions work?

5schatten commented 5 years ago

Well I guess this could be the same story as https://github.com/libretro/RetroArch/issues/7254 https://github.com/libretro/RetroArch/issues/6610

I have the same issue on my RPi3 setups while generic & S905 based ones are fine.

RiRilot commented 5 years ago

Just compiled again from the current master. Same issue.

orbea commented 5 years ago

Can you try previous Retroarch tags to see if any of them worked? See git tag for the full list of tags, for example you can build 1.7.0.

git checkout v1.7.0
./configure
make
RiRilot commented 5 years ago

I've just tried 1.7.0 and 1.7.1 Same issue. Games display fine by the way. It's only 2D images in the menu system. Things such as backgrounds, screenshots, boxarts etc. Once a rom is running the colours are correct, even for the bezel art.

orbea commented 5 years ago

Would you mind testing farther back? Maybe v1.3.6 or v1.2.* depending how far you can go before it doesn't build or work at all.

RiRilot commented 5 years ago

I can't get anything older than 1.7.0 to compile on Raspian Stretch. Just tried the versions you listed. My Linux Fu isn't great I'm afraid.

orbea commented 5 years ago

Oh well, I think you are going to need someone more knowledgeable than me to help here...

markwkidd commented 5 years ago

I believe this is a duplicate of https://github.com/libretro/RetroArch/issues/6611

ghost commented 5 years ago

Not a duplicate, swapped red/blue is a different problem from random artifacts. One is in the gl driver and the other is image decoder related.

chowbok commented 4 years ago

I'm seeing this issue as well in 1.7.9.2, on a custom Linux install on an RPI 3B+. I could "fix" this by converting all the thumbs from RGB to BGR but that seems hacky. Let me know what information you need from my build.

chowbok commented 4 years ago

I noticed also that this is not happening in Lakka on the same hardware. So... what's different about my build that's causing this? Also, can the description be changed? It's not a Raspbian problem specifically.

RobLoach commented 4 years ago

Could you post some screenshots or more detail?

chowbok commented 4 years ago

Sure, what kind of details do you need? All PNGs, be they screenshots (taken or downloaded) or box images or whatever, are displayed with the red and blue swapped. Green is the same. This is only images, not gameplay. I compiled RA myself. I'm not running Raspbian. I'm using GL as the video driver. X11 and Wayland are not on the box. I tried compiling it with both internal and external zlib, no difference. I tried compiling it without RPNG but the compile errored out. Let me know what else I can tell you.

chowbok commented 4 years ago

Okay, I took the advice of @orbea above and downgraded. Version 1.3.6 does not have this problem. I'll see if I can figure out where it was introduced.

chowbok commented 4 years ago

Okay, drilled down. This problem was introduced in version 1.6.1.2. I'm not great with git, but I'll try to find the exact commit.

chowbok commented 4 years ago

Found it: https://github.com/libretro/RetroArch/commit/bcaa24cf7b1221f7d84a7c719020bdc301dde82d. Undoing that change in my 1.8.0 build fixes the problem.

orbea commented 4 years ago

Are you building with HAVE_VIDEOCORE? Please check config.mk after running ./configure.

chowbok commented 4 years ago

Yes, looks like it. Should I not be?

MrHuu commented 4 years ago

This exact issue is also experienced on the 3DS platform.

Red and blue colors swapped, it affects all icons and thumbnail images.

bulzipke commented 3 years ago

Relate issue https://github.com/libretro/RetroArch/issues/6832 Maybe.