Mesa for Linux PPC

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

Re: Mesa for Linux PPC

Post by xeno74 »

Hi All,

Mesa 18.2.2 is available. :-)

Installation instructions:
  1. Code: Select all

    sudo cp -R mesa-18.2.2 /usr/local/
  2. Code: Select all

    sudo mv /usr/lib/powerpc-linux-gnu/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/r600_dri.so.bak
  3. Code: Select all

    sudo mv /usr/lib/powerpc-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/mesa/libGL.so.1.2.0.bak
  4. Code: Select all

    sudo cp /usr/local/mesa-18.2.2/lib/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/
  5. Code: Select all

    sudo cp /usr/local/mesa-18.2.2/lib/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/mesa/
Image

PLEASE test it.

Thanks,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Mesa for Linux PPC

Post by xeno74 »

Hi All,

I released the new Mesa 19.0.0 today. :-)

Installation instructions for Ubuntu:
  1. Code: Select all

    sudo cp -R mesa-19.0.0 /usr/local/
  2. Code: Select all

    sudo mv /usr/lib/powerpc-linux-gnu/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/r600_dri.so.bak
  3. Code: Select all

    sudo mv /usr/lib/powerpc-linux-gnu/mesa/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/mesa/libGL.so.1.2.0.bak
  4. Code: Select all

    sudo cp /usr/local/mesa-19.0.0/lib/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/
  5. Code: Select all

    sudo cp /usr/local/mesa-19.0.0/lib/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/mesa/
Installation instructions for Fienix:
  1. Code: Select all

    su
  2. Code: Select all

    cp -R mesa-19.0.0 /usr/local/
  3. Code: Select all

    mv /usr/lib/powerpc-linux-gnu/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/r600_dri.so.bak
  4. Code: Select all

    mv /usr/lib/powerpc-linux-gnu/libGL.so.1.7.0 /usr/lib/powerpc-linux-gnu/libGL.so.1.7.0.bak
  5. Code: Select all

    cp /usr/local/mesa-19.0.0/lib/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/
  6. Code: Select all

    cp /usr/local/mesa-19.0.0/lib/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/
  7. Code: Select all

    rm /usr/lib/powerpc-linux-gnu/libGL.so.1
  8. Code: Select all

    cd /usr/lib/powerpc-linux-gnu/
  9. Code: Select all

    ln -s libGL.so.1.2.0 libGL.so.1
Fienix result:

Code: Select all

lrwxrwxrwx 1 root root      14 Mar 16 00:38 libGL.so.1 -> libGL.so.1.2.0
-rwxr-xr-x 1 root root 2978108 Mar 16 00:33 libGL.so.1.2.0
-rw-r--r-- 1 root root  853552 Aug 10  2018 libGL.so.1.7.0.bak
Image

PLEASE test it.

Thanks,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Mesa for Linux PPC

Post by xeno74 »

Glxgears results (vblank_mode=0 glxgears):

AmigaOne X5000/40, 8GB RAM, Radeon HD4870 (AMD RV770), DRM 2.50, 3.0 Mesa 18.2.2, ubuntu MATE 16.04.6 LTS, kernel 5.4-rc3:

Code: Select all

8302 frames in 5.0 seconds = 1660.330 FPS
8272 frames in 5.0 seconds = 1654.378 FPS
8450 frames in 5.0 seconds = 1689.812 FPS
8443 frames in 5.0 seconds = 1688.426 FPS
8446 frames in 5.0 seconds = 1689.003 FPS
8397 frames in 5.0 seconds = 1679.243 FPS
8359 frames in 5.0 seconds = 1671.788 FPS
8169 frames in 5.0 seconds = 1633.711 FPS
8406 frames in 5.0 seconds = 1681.091 FPS
8348 frames in 5.0 seconds = 1669.419 FPS
8458 frames in 5.0 seconds = 1691.421 FPS
AmigaOne X1000, 8GB RAM, Radeon HD6870 (AMD BARTS), DRM 2.50, 3.1 Mesa 18.2.2, ubuntu MATE 16.04.6 LTS, kernel 5.4-rc3:

Code: Select all

7189 frames in 5.0 seconds = 1437.671 FPS
7373 frames in 5.0 seconds = 1474.594 FPS
7323 frames in 5.0 seconds = 1464.541 FPS
7384 frames in 5.0 seconds = 1476.643 FPS
7381 frames in 5.0 seconds = 1476.036 FPS
7390 frames in 5.0 seconds = 1477.814 FPS
7321 frames in 5.0 seconds = 1464.139 FPS
7378 frames in 5.0 seconds = 1475.435 FPS
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 9:22 pm

Re: Mesa for Linux PPC

Post by mechanic »

Did the install several times. Checked everything after install.
What am I missing or need to do?

Code: Select all

root@Fienix:/home/fienix# env
SHELL=/bin/bash
SESSION_MANAGER=local/Fienix:@/tmp/.ICE-unix/2941,unix/Fienix:/tmp/.ICE-unix/2941
WINDOWID=44040198
QT_ACCESSIBILITY=1
COLORTERM=truecolor
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
DESKTOP_SESSION=lightdm-xsession
SSH_AGENT_PID=2973
GTK_MODULES=gail:atk-bridge
XDG_SEAT=seat0
MATE_DESKTOP_SESSION_ID=this-is-deprecated
PWD=/home/fienix
XDG_SESSION_DESKTOP=lightdm-xsession
LOGNAME=fienix
XDG_SESSION_TYPE=x11
GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
XAUTHORITY=/home/fienix/.Xauthority
XDG_GREETER_DATA_DIR=/var/lib/lightdm/data/fienix
HOME=/root
LANG=en_US.UTF-8
XDG_CURRENT_DESKTOP=MATE
VTE_VERSION=5800
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SESSION_CLASS=user
TERM=xterm-256color
GTK_OVERLAY_SCROLLING=0
USER=fienix
DISPLAY=:0
SHLVL=2
XDG_VTNR=7
XDG_SESSION_ID=c2
LD_LIBRARY_PATH=/usr/local/mesa-19.0.0/lib/
XDG_RUNTIME_DIR=/run/user/1000
COMPIZ_CONFIG_PROFILE=mate
QT_AUTO_SCREEN_SCALE_FACTOR=0
XDG_DATA_DIRS=/usr/share/mate:/usr/local/share/:/usr/share/
PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
GDMSESSION=lightdm-xsession
INSIDE_CAJA_PYTHON=
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MAIL=/var/mail/root
QT_SCALE_FACTOR=1
_=/usr/bin/env

Code: Select all

    Section "Monitor"
    Identifier "Monitor0"
    EndSection

    Section "Device"
    Identifier "Device0"
    Driver "radeon"
    BusID "PCI:01:0:0"
    EndSection

    Section "Screen"
    Identifier "Screen0"
    Device "Device0"
    Monitor "Monitor0"
    DefaultDepth 24
    SubSection "Display"
    Depth   24
    Modes "1280x1024_60.00"
    EndSubSection
    EndSection

Code: Select all

root@Fienix:/home/fienix# glxinfo | grep -i opengl
OpenGL vendor string: X.Org
OpenGL renderer string: AMD BARTS (DRM 2.50.0 / 5.4.0-rc2_A-EON_X1000_Nemo)
OpenGL core profile version string: 3.2 (Core Profile) Mesa 19.0.0
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 19.0.0
OpenGL shading language version string: 1.40
OpenGL context flags: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 Mesa 19.0.0
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.0.16
OpenGL ES profile extensions:
root@Fienix:/home/fienix# video_mode=0 glxgears
306 frames in 5.0 seconds = 60.856 FPS
301 frames in 5.0 seconds = 60.020 FPS
301 frames in 5.0 seconds = 60.005 FPS
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
xeno74
Posts: 6322
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa for Linux PPC

Post by xeno74 »

mechanic wrote:Did the install several times. Checked everything after install.
What am I missing or need to do?
You have tested it with video_mode=0 glxgears.

Please try vblank_mode=0 glxgears instead.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 9:22 pm

Re: Mesa for Linux PPC

Post by mechanic »

Yes. Of course it is......geez. :roll:
Note to self ** Don't do this stuff when you should be sleeping. **
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
musa
Posts: 412
Joined: Tue Aug 23, 2011 7:58 pm

Re: Mesa for Linux PPC

Post by musa »

xeno74 wrote:Hi All,

I released the new Mesa 19.0.0 today. :-)



PLEASE test it.

Thanks,
Christian

Hi Christian
Will this also work on a debian bullseye / sid 64 system?
Peter
AmigaX1000
Follow me on twitter @basjoo_dk
User avatar
xeno74
Posts: 6322
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa for Linux PPC

Post by xeno74 »

musa wrote: Hi Christian
Will this also work on a debian bullseye / sid 64 system?
Peter
Hi Peter,

No, it only works on 32-bit PowerPC Linux distributions but there is a newer and better version available via the package system of your Debian Bullseye / Sid PPC64. ;-)

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply