Mesa for Linux PPC

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

Re: Mesa for Linux PPC

Post by xeno74 »

Hi All,

I compiled Mesa 17.2.1 for the MATE PowerPC Remix 2017 today.

Download: MesaLib-17.2.1-1-without-llvm-powerpc-unofficial.tar.bz2

Installation instructions:
  1. Code: Select all

    sudo mv /usr/lib/powerpc-linux-gnu/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/r600_dri.so.bak
  2. 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
  3. Code: Select all

    sudo cp /usr/local/mesa-17.2.1-without-llvm/lib/dri/r600_dri.so /usr/lib/powerpc-linux-gnu/dri/
  4. Code: Select all

    sudo cp /usr/local/mesa-17.2.1-without-llvm/lib/libGL.so.1.2.0 /usr/lib/powerpc-linux-gnu/mesa/
I successfully tested it on my X5000 and X1000.

Image

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

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

Re: Mesa for Linux PPC

Post by xeno74 »

Hi All,

Good news for our NI graphics cards.

Link: R600 Gallium3D Gets Some Last Minute Improvements In Mesa 18.0

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

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

Re: Mesa for Linux 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: 6311
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa for Linux 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: 6311
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa for Linux 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.
User avatar
xeno74
Posts: 6311
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa for Linux 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
vox
Posts: 173
Joined: Thu Jun 23, 2011 2:19 pm
Location: Belgrade Country:Serbia
Contact:

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by vox »

xeno74 wrote:Mesa unofficial 10.0.4 is available.

Download: MesaLib-10.0.4-powerpc-unofficial.tar.bz2
Does this resolve colour problem and 3D Gnome under PPC Linuxes on x1000?
User avatar
xeno74
Posts: 6311
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa for Linux PPC

Post by xeno74 »

Hi All,

I compiled Mesa 18.1.2 in a virtual e5500 QEMU PPC64 machine today.

Download: mesa-18.1.2-linux-powerpc.tar.gz

Image

PLEASE test it.

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

Running Linux on AmigaONEs can require some tinkering.
seventhwonder
Beta Tester
Beta Tester
Posts: 214
Joined: Sat Jun 18, 2011 7:08 am

Re: Mesa for Linux PPC

Post by seventhwonder »

@all

Are we in the same position regarding RadeonSI support on Linux PPC64 ?
AmigaOS4 Beta-Tester
**AmigaOne X5000 + 8GB RAM + Asus Radeon R7 265 GDDR5**
**Tabor A1222 + 2GB RAM + Asus Radeon HD R7 265 GDDR5 **
**Sam460 + 2GB RAM + Radeon HD 7750 GDDR5 **
User avatar
xeno74
Posts: 6311
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa for Linux PPC

Post by xeno74 »

seventhwonder wrote:@all

Are we in the same position regarding RadeonSI support on Linux PPC64 ?
Yes, that's correct.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
Post Reply