Mesa & DRI for PPC

AmigaOne X5000 platform specific issues related to Linux only.
User avatar
xeno74
Posts: 11426
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Mesa & DRI for PPC

Post by xeno74 »

caseycullen wrote: Tue Jun 27, 2023 4:34 am Hi All!

Mesa 23.1.2 has been added to the Fienix Evo repositories. I suggest upgrading for improved system performance.
You can also install the new Mesa 23.1.2 with the following commands on Debian and MintPPC:

Code: Select all

apt update

Code: Select all

apt install libgl1-mesa-dri libgl1-mesa-glx mesa-utils
User avatar
xeno74
Posts: 11426
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Mesa & DRI for PPC

Post by xeno74 »

FYI:
Link wrote: Hello Christian,

Well some time past, I would like to inform you that I managed to make it work, well no longer with a HD6970 but with another card, I would like to warn you about Mesa 24.2.x, it's causing problems in big endian related to not having 3D acceleration, I suggest not updating and staying on mesa 24.1.x, we had more analysis into it https://gitlab.freedesktop.org/mesa/mesa/-/issues/11933 and https://gitlab.freedesktop.org/mesa/mesa/-/issues/12048

Have a great week, best regards,
Link.
User avatar
xeno74
Posts: 11426
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Mesa & DRI for PPC

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 },
User avatar
xeno74
Posts: 11426
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Mesa & DRI for PPC

Post by xeno74 »

  • X5000/40, Radeon HD6870 and Void PPC with kernel 5.10.247 (DRM 2.50.0): glmark2 Score: 4174
  • X5000/40, Radeon HD6870 and MintPPC32 with kernel 5.10.247 (DRM 2.50.0): glmark2 Score: 3857
  • X5000/40, Radeon HD6870 and Void PPC with kernel 6.12.62 (DRM 2.50.0): glmark2 Score: 3549
    X5000/40, Radeon HD6870 and Void PPC with kernel 6.19.0-rc2 (DRM 2.51.0): glmark2 Score: 3600
  • X5000/40, Radeon HD6870 and MintPPC32 with kernel 6.19.0-rc2 (DRM 2.51.0): glmark2 Score: 3358
  • X1000, Radeon HD5870 and Void PPC with kernel 5.10.247 (DRM 2.50.0): glmark2 Score: 2653
  • X1000, Radeon HD5870 and Void PPC with kernel 6.12.62 (DRM 2.50.0): glmark2 Score: 2485
  • X1000, Radeon HD5870 and Void PPC with kernel 6.19.0-rc2 (DRM 2.51.0): glmark2 Score: 2568
mintppc
Posts: 186
Joined: Thu May 01, 2025 9:20 am
Contact:

Re: Mesa & DRI for PPC

Post by mintppc »

Hello,

I have been experimenting with mesa lately. I will likely build a very recent mesa 26.2.1 on ppc64 with the r300/r600 patches introduced in 26.2.0, see https://docs.mesa3d.org/relnotes/26.2.0.html

On Debian, mesa does not build anymore on ppc64. I have tried to fix it but it is too complicated for me. I spent three full days debugging. I will now build a much smaller mesa only useful for our community without drivers that are not needed.

This can also be beneficial for you guys. I hope that this very recent mesa allows us to have a working hardware acceleration again, as it was gone since 24.1.6.

Regards,
Jeroen
User avatar
xeno74
Posts: 11426
Joined: Fri Mar 23, 2012 7:58 am
Contact:

Re: Mesa & DRI for PPC

Post by xeno74 »

Great work! :-)
Post Reply