Mesa & DRI for PPC

AmigaOne X5000 platform specific issues related to Linux only.
caseycullen
Posts: 335
Joined: Sat Dec 17, 2016 7:12 am
Location: Madison, WI USA
Contact:

Mesa & DRI for PPC

Post by caseycullen »

I was able to build Mesa 17.2.0-devel with DRI 3 support on X5000 using xeno's instructions: http://forum.hyperion-entertainment.biz ... &start=100
glxgears values are improved :)

Image

User avatar
xeno74
Posts: 5672
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa & DRI for PPC

Post by xeno74 »

caseycullen wrote:I was able to build Mesa 17.2.0-devel with DRI 3 support on X5000 using xeno's instructions: http://forum.hyperion-entertainment.biz ... &start=100
glxgears values are improved :)
Hi Caseycullen,

Many thanks for testing the new Mesa 17.2.0-devel with DRI 3 support on your X5000. Your Glxgears values have been really improved. Well done! :-)

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

Running Linux on AmigaONEs can require some tinkering.

User avatar
xeno74
Posts: 5672
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa & DRI for PPC

Post by xeno74 »

Hi All,

I released the RC4 of Mesa 18.0.0 for testing today.

Download: mesa-18.0.0-rc4-linux-powerpc.tar.gz

Installation instructions:
  1. Code: Select all

    sudo cp -R mesa-18.0.0-rc4 /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.0.0-rc4/lib/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/
  5. Code: Select all

    sudo cp /usr/local/mesa-18.0.0-rc4/lib/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/mesa/
I successfully tested it with the MATE PowerPC Remix (X1000) and with ubuntu MATE 16.04.3 LTS PowerPC (X5000) today.

The MATE PowerPC Remix 2017 with the RC4 of Mesa 18.0.0 on an AmigaOne X1000 with a Radeon HD6870:

Image

ubuntu MATE 16.04.3 LTS PowerPC with the RC4 of Mesa 18.0.0 on an AmigaOne X5000 with a Radeon HD4870:

Image

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

Running Linux on AmigaONEs can require some tinkering.

caseycullen
Posts: 335
Joined: Sat Dec 17, 2016 7:12 am
Location: Madison, WI USA
Contact:

Re: Mesa & DRI for PPC

Post by caseycullen »

Christian,
Thanks for the Mesa 18.0 download! I have tested it on MATE PowerPC Remix with kernel 4.15.0-RC7 and with no issues. I'll test with newer kernel shortly.
Image
---Casey

caseycullen
Posts: 335
Joined: Sat Dec 17, 2016 7:12 am
Location: Madison, WI USA
Contact:

Re: Mesa & DRI for PPC

Post by caseycullen »

Tested Mesa 18.0 with kernel 4.16-rc2; no issues noticed.
---Casey
Image

User avatar
xeno74
Posts: 5672
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa & DRI for PPC

Post by xeno74 »

caseycullen wrote:Tested Mesa 18.0 with kernel 4.16-rc2; no issues noticed.
---Casey
Hi Casey,

Many thanks for testing and thanks a lot for the screenshots!

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

Running Linux on AmigaONEs can require some tinkering.

User avatar
Skateman
Posts: 416
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Mesa & DRI for PPC

Post by Skateman »

X5000 with R 250 Radeon (no hardware support) running MESA 18

Image
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon R7 250 / M-Audio 5.1 -> AmigaOS 4.1 FE / Ubuntu Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world

User avatar
xeno74
Posts: 5672
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa & DRI for PPC

Post by xeno74 »

Skateman wrote:X5000 with R 250 Radeon (no hardware support) running MESA 18
Thanks a lot for testing Mesa 18!
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.

User avatar
xeno74
Posts: 5672
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa & DRI for PPC

Post by xeno74 »

Hi All,

I compiled the final version of Mesa 18.0.0 today.

Build instructions:

Code: Select all

./configure --prefix /usr/local/mesa-18.0.0 --with-gallium-drivers="r600,swrast" --enable-texture-float --enable-dri3
Output:

Code: Select all

        prefix:          /usr/local/mesa-18.0.0
        exec_prefix:     ${prefix}
        libdir:          ${exec_prefix}/lib
        includedir:      ${prefix}/include

        OpenGL:          yes (ES1: yes ES2: yes)

        OSMesa:          no

        DRI platform:    drm
        DRI drivers:     r200 radeon swrast 
        DRI driver dir:  ${libdir}/dri
        GLX:             DRI-based

        EGL:             yes
        EGL drivers:     builtin:egl_dri2 builtin:egl_dri3
        GBM:             yes
        EGL/Vulkan/VL platforms:   x11 surfaceless drm

        Vulkan drivers:  no

        llvm:            no

        Gallium drivers: r600 swrast
        Gallium st:      mesa

        HUD extra stats: no
        HUD lmsensors:   no


        Shared libs:     yes
        Static libs:     no
        Shared-glapi:    yes

        CFLAGS:          -g -O2 -Wall -Werror=implicit-function-declaration -Werror=missing-prototypes -Wmissing-prototypes -fno-math-errno -fno-trapping-math -std=c99
        CXXFLAGS:        -g -O2 -Wall -fno-math-errno -fno-trapping-math
        CXX11_CXXFLAGS:  -std=c++11
        LDFLAGS:         
        Macros:          -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -D_GNU_SOURCE -DUSE_GCC_ATOMIC_BUILTINS -DMISSING_64BIT_ATOMICS -DNDEBUG -DTEXTURE_FLOAT_ENABLED -DHAVE_XLOCALE_H -DHAVE_SYS_SYSCTL_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_TIMESPEC_GET -DHAVE_STRTOD_L -DHAVE_DL_ITERATE_PHDR -DHAVE_POSIX_MEMALIGN -DHAVE_ZLIB -DHAVE_LINUX_FUTEX_H -DHAVE_LIBDRM -DGLX_USE_DRM -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_DRI3 -DENABLE_SHADER_CACHE -DHAVE_MINCORE

        PYTHON2:         python2.7

        Run 'make' to build Mesa

Code: Select all

make

Code: Select all

# make install
or

Code: Select all

sudo make install

Code: Select all

export LD_LIBRARY_PATH=/usr/local/mesa-18.0.0/lib/

Code: Select all

glxinfo | grep -i opengl

Code: Select all

LIBGL_DEBUG=verbose vblank_mode=0 glxgears
Download: mesa-18.0.0-linux-powerpc.tar.gz

Installation instructions:
  1. Code: Select all

    sudo cp -R mesa-18.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-18.0.0/lib/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/
  5. Code: Select all

    sudo cp /usr/local/mesa-18.0.0/lib/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/mesa/
Screenshot:

Image

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

Running Linux on AmigaONEs can require some tinkering.

User avatar
Skateman
Posts: 416
Joined: Thu Aug 10, 2017 8:36 pm
Location: The Netherlands

Re: Mesa & DRI for PPC

Post by Skateman »

Is it worth (or even possible) upgrading if not using a r600 based GPU? (As i am using a Radeon R7 250)
AmigaOne X5000 -> 2GHz / 16GB RAM / Radeon R7 250 / M-Audio 5.1 -> AmigaOS 4.1 FE / Ubuntu Linux
Amiga 1200 -> Recapped / 68ec020 ACA 1221ec / CF HDD / RetroNET connected to the world

Post Reply