Mesa & DRI for PPC

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

Re: Mesa & DRI for PPC

Post by xeno74 »

Mesa 22.1.3_1 is available for Void PPC.

Update instructions:
  1. Code: Select all

    xbps-remove mesa-demos
  2. Code: Select all

    xbps-remove libOSMesa
  3. Code: Select all

    xbps-install -S mesa-dri
    Output:

    Code: Select all

    [*] Updating repository `https://auto.voidlinux-ppc.org/current/ppc/ppc-repodata' ...
    [*] Updating repository `https://auto.voidlinux-ppc.org/current/ppc/nonfree/ppc-repodata' ...
    
    Name              Action    Version           New version            Download size
    xf86-video-amdgpu update    21.0.0_2          22.0.0_1               87KB 
    libglapi          update    21.3.7_1          22.1.3_1               78KB 
    libgbm            update    21.3.7_1          22.1.3_1               34KB 
    mesa              update    21.3.7_1          22.1.3_1               321KB 
    mesa-dri          update    21.3.7_1          22.1.3_1               6444KB 
    
    Size to download:             6965KB
    Size required on disk:          21MB
    Space available on disk:        88GB
    
    Do you want to continue? [Y/n] 
    
    [*] Downloading packages
    xf86-video-amdgpu-22.0.0_1.ppc.xbps.sig: 512B [avg rate: 11MB/s]
    xf86-video-amdgpu-22.0.0_1.ppc.xbps: 87KB [avg rate: -- stalled --]
    xf86-video-amdgpu-22.0.0_1: verifying RSA signature...
    libglapi-22.1.3_1.ppc.xbps.sig: 512B [avg rate: 12MB/s]
    libglapi-22.1.3_1.ppc.xbps: 78KB [avg rate: -- stalled --]
    libglapi-22.1.3_1: verifying RSA signature...
    libgbm-22.1.3_1.ppc.xbps.sig: 512B [avg rate: 9259KB/s]
    libgbm-22.1.3_1.ppc.xbps: 34KB [avg rate: -- stalled --]
    libgbm-22.1.3_1: verifying RSA signature...
    mesa-22.1.3_1.ppc.xbps.sig: 512B [avg rate: 12MB/s]
    mesa-22.1.3_1.ppc.xbps: 321KB [avg rate: 2593KB/s]
    mesa-22.1.3_1: verifying RSA signature...
    mesa-dri-22.1.3_1.ppc.xbps.sig: 512B [avg rate: 10MB/s]
    mesa-dri-22.1.3_1.ppc.xbps: 6444KB [avg rate: -- stalled --]
    mesa-dri-22.1.3_1: verifying RSA signature...
    
    [*] Collecting package files
    xf86-video-amdgpu-22.0.0_1: collecting files...
    xf86-video-amdgpu-21.0.0_2: collecting files...
    libglapi-22.1.3_1: collecting files...
    libglapi-21.3.7_1: collecting files...
    libgbm-22.1.3_1: collecting files...
    libgbm-21.3.7_1: collecting files...
    mesa-22.1.3_1: collecting files...
    mesa-21.3.7_1: collecting files...
    mesa-dri-22.1.3_1: collecting files...
    mesa-dri-21.3.7_1: collecting files...
    
    [*] Unpacking packages
    xf86-video-amdgpu-21.0.0_2: updating to 22.0.0_1 ...
    xf86-video-amdgpu-22.0.0_1: unpacking ...
    libglapi-21.3.7_1: updating to 22.1.3_1 ...
    libglapi-22.1.3_1: unpacking ...
    libgbm-21.3.7_1: updating to 22.1.3_1 ...
    libgbm-22.1.3_1: unpacking ...
    mesa-21.3.7_1: updating to 22.1.3_1 ...
    mesa-22.1.3_1: unpacking ...
    mesa-dri-21.3.7_1: updating to 22.1.3_1 ...
    mesa-dri-22.1.3_1: unpacking ...
    
    [*] Configuring unpacked packages
    xf86-video-amdgpu-22.0.0_1: configuring ...
    xf86-video-amdgpu-22.0.0_1: updated successfully.
    libglapi-22.1.3_1: configuring ...
    libglapi-22.1.3_1: updated successfully.
    libgbm-22.1.3_1: configuring ...
    libgbm-22.1.3_1: updated successfully.
    mesa-22.1.3_1: configuring ...
    mesa-22.1.3_1: updated successfully.
    mesa-dri-22.1.3_1: configuring ...
    mesa-dri-22.1.3_1: updated successfully.
    
    5 downloaded, 0 installed, 5 updated, 5 configured, 0 removed.
    
glxinfo | grep -i opengl

Code: Select all

OpenGL vendor string: X.Org
OpenGL renderer string: AMD CAYMAN (DRM 2.50.0 / 5.19.0-rc5_A-EON_X5000, LLVM 12.0.1)
OpenGL core profile version string: 3.2 (Core Profile) Mesa 22.1.3
OpenGL core profile shading language version string: 1.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.1 Mesa 22.1.3
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 22.1.3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa & DRI for PPC

Post by xeno74 »

FYI: Rewritten R600g NIR Backend Merged For Mesa 22.2 - Improves Radeon HD 5000/6000 Series
“Gert Wollny” wrote: The new NIR code is available with the merge request. If you want to help and test this code, the back-end is enabled with R600_DEBUG=nir. SB is enabled by default, but you can use R600_DEBUG=nir,nosb to run NIR with disabled SB. Play your favorite games with the back-end enabled and report bugs at https://gitlab.freedesktop.org/mesa/mesa/-/issues. If you are a developer and have the hardware, just pick a task from the list above and start fixing.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa & DRI for PPC

Post by xeno74 »

http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa & DRI for PPC

Post by xeno74 »

I was able to update Mesa to version 22.2.0-rc3 on MintPPC today.

Code: Select all

apt install libgl1-mesa-dri
With export R600_DEBUG=nir, we have OpenGL 3.2 support.

Code: Select all

┌──(mintppc㉿mintppc)-[~]
└─$ glxinfo | grep -i opengl
OpenGL vendor string: X.Org
OpenGL renderer string: AMD CAYMAN (DRM 2.50.0 / 6.0.0-rc2_A-EON_X5000, LLVM 14.0.6)
OpenGL core profile version string: 3.2 (Core Profile) Mesa 22.2.0-rc3
OpenGL core profile shading language version string: 1.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.2 (Compatibility Profile) Mesa 22.2.0-rc3
OpenGL shading language version string: 1.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 22.2.0-rc3
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa & DRI for PPC

Post by xeno74 »

FYI: Radeon R600 Gallium3D Switches To Modern NIR Backend By Default — phoronix.com
The NIR Intermediate Representation (NIR) is the optimizing compiler stack that sits at the core of most Mesa drivers’ shader compilers.

When the r600 driver are originally implemented, TGSI was the dominating intermediate representation (IR) used by the shader compilers in Mesa. Several years back, NIR (new intermediate representation) was introduced, which has since been adopted by most drivers in Mesa. Among other things, NIR allows adding hardware specific opcodes that make it easy to transform the shader code to something that can easily be translated into hardware specific assembly.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa & DRI for PPC

Post by xeno74 »

FYI: The Old ATI R300 Open-Source Driver Sees Improvements For OpenGL, WineD3D Apps/Games (The R300g driver supports Radeon X300 through Radeon X1000 (R500) series graphics cards)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
caseycullen
Posts: 519
Joined: Sat Dec 17, 2016 7:12 am
Location: Madison, WI USA
Contact:

Re: Mesa & DRI for PPC

Post by caseycullen »

Hi All!

Mesa 23.1.2 has been added to the Fienix Evo repositories. I suggest upgrading for improved system performance. I've listed improvements measured by glxgears and glmark on my X5000 (with Radeon HD6870) below.

Mesa 22.3.6 approximate average: 2138 FPS
Mesa 23.1.2 approximate average: 2518 FPS

Mesa 22.3.6 GLMark Score: 2476
Mesa 23.1.2 GLMark Score: 3208

Image

Image

-Casey
Post Reply