Mesa downgrade issue

AmigaOne X5000 platform specific issues related to Linux only.
MartinW
Posts: 35
Joined: Tue May 27, 2025 3:42 am

Re: Mesa downgrade issue

Post by MartinW »

The top one is the result of just libsdl2-dev, the bottom one, libsdl2-image-dev
Screenshot 2025-08-27 at 13.08.42.png
mintppc
Posts: 133
Joined: Thu May 01, 2025 9:20 am
Contact:

Re: Mesa downgrade issue

Post by mintppc »

now do:

Code: Select all

sudo apt-mark hold libgbm-dev libgbm1
MartinW
Posts: 35
Joined: Tue May 27, 2025 3:42 am

Re: Mesa downgrade issue

Post by MartinW »

That got it - thank you. Interestingly, it looks like there are colour issues in sdl2-ttf. No doubt some big endian issue. Will have to investigate that one. Hopefully the answer isn't to update SDL2 :D

[EDIT] Actually, not just sdl2-TTF, elsewhere too so potentially it's a broader issue.
Last edited by MartinW on Wed Aug 27, 2025 2:19 pm, edited 1 time in total.
mintppc
Posts: 133
Joined: Thu May 01, 2025 9:20 am
Contact:

Re: Mesa downgrade issue

Post by mintppc »

Glad it worked for you too.
mintppc
Posts: 133
Joined: Thu May 01, 2025 9:20 am
Contact:

Re: Mesa downgrade issue

Post by mintppc »

good luck with your big endian problem
MartinW
Posts: 35
Joined: Tue May 27, 2025 3:42 am

Re: Mesa downgrade issue

Post by MartinW »

It's been brought to my attention that YouTube videos don't display in the correct colours either so my suspicion is it's not SDL2, or my code that has the problem.
yt_colours.png
MartinW
Posts: 35
Joined: Tue May 27, 2025 3:42 am

Re: Mesa downgrade issue

Post by MartinW »

Are the source packages and build parameters used to build the sources available anywhere (general question)?

I built the mesa stuff last night from the master branch as I think looking at some of the bug reports that at least one factor contributing to us needing to hold it back may have been resolved upstream in a version we don't have yet. It didn't work for me but I wasn't sure if I was selecting the right combination of build options / flags / drivers.

It was 3am by that time so I didn't dig deeper yet so forgive me if the source and stuff is obviously available somewhere. It's also a potentially pointless exercise from my point of view. All I can do with my skillset (at the moment at least) is determine if an upcoming version resolves issues. I don't have the knowledge to contribute fixes. At least I don't think I do. Building on the X5040 wasn't too painful. ~1800 source file in 5 to 10 minutes.
User avatar
xeno74
Posts: 10821
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Mesa downgrade issue

Post by xeno74 »

Link wrote:
Hello everyone, I hope everything is alright.

I wonder if it could be possible to apply this patch for mesa 25.2.x, it fixes indirectly for big endian machines. The issue is it can only be applied for mesa25.2, on mesa 25.3-git it doesn' work anymore. The patch was made by caciottax86
https://gitlab.freedesktop.org/mesa/mesa/-/issues/13952

Best regards,
Link.

Code: Select all

--- a/src/loader/loader_dri_helper.c
+++ b/src/loader/loader_dri_helper.c
@@ -54,10 +54,10 @@
    { PIPE_FORMAT_R8G8B8A8_SRGB, __DRI_IMAGE_FOURCC_SABGR8888 },
    { PIPE_FORMAT_X8B8G8R8_UNORM, DRM_FORMAT_RGBX8888 },
    { PIPE_FORMAT_A8B8G8R8_UNORM, DRM_FORMAT_RGBA8888 },
-   { PIPE_FORMAT_X8R8G8B8_UNORM, DRM_FORMAT_BGRX8888 },
-   { PIPE_FORMAT_A8R8G8B8_UNORM, DRM_FORMAT_BGRA8888 },
    { PIPE_FORMAT_B8G8R8X8_UNORM, DRM_FORMAT_XRGB8888 },
    { PIPE_FORMAT_B8G8R8A8_UNORM, DRM_FORMAT_ARGB8888 },
+   { PIPE_FORMAT_X8R8G8B8_UNORM, DRM_FORMAT_XRGB8888 },
+   { PIPE_FORMAT_A8R8G8B8_UNORM, DRM_FORMAT_ARGB8888 },
    { PIPE_FORMAT_R8G8B8X8_UNORM, DRM_FORMAT_XBGR8888 },
    { PIPE_FORMAT_R8G8B8A8_UNORM, DRM_FORMAT_ABGR8888 },
    { PIPE_FORMAT_B10G10R10X2_UNORM, DRM_FORMAT_XRGB2101010 },
mintppc
Posts: 133
Joined: Thu May 01, 2025 9:20 am
Contact:

Re: Mesa downgrade issue

Post by mintppc »

If someone builds it and tests it and reports that it works, I can build a deb for MintPPC32.
Post Reply