Page 1 of 5

Mesa & DRI for PPC

PostPosted: Tue May 09, 2017 3:20 am
by caseycullen
I was able to build Mesa 17.2.0-devel with DRI 3 support on X5000 using xeno's instructions: viewtopic.php?f=35&t=2137&start=100
glxgears values are improved :)

Image

Re: Mesa & DRI for PPC

PostPosted: Tue May 09, 2017 7:23 am
by xeno74
caseycullen wrote:I was able to build Mesa 17.2.0-devel with DRI 3 support on X5000 using xeno's instructions: viewtopic.php?f=35&t=2137&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

Re: Mesa & DRI for PPC

PostPosted: Wed Feb 21, 2018 3:41 pm
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

Re: Mesa & DRI for PPC

PostPosted: Sat Feb 24, 2018 5:22 am
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

Re: Mesa & DRI for PPC

PostPosted: Sat Feb 24, 2018 6:23 am
by caseycullen
Tested Mesa 18.0 with kernel 4.16-rc2; no issues noticed.
---Casey
Image

Re: Mesa & DRI for PPC

PostPosted: Sat Feb 24, 2018 12:33 pm
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

Re: Mesa & DRI for PPC

PostPosted: Sat Feb 24, 2018 4:33 pm
by Skateman
X5000 with R 250 Radeon (no hardware support) running MESA 18

Image

Re: Mesa & DRI for PPC

PostPosted: Sat Feb 24, 2018 6:02 pm
by xeno74
Skateman wrote:X5000 with R 250 Radeon (no hardware support) running MESA 18


Thanks a lot for testing Mesa 18!

Re: Mesa & DRI for PPC

PostPosted: Wed Apr 18, 2018 1:42 pm
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

Re: Mesa & DRI for PPC

PostPosted: Mon Apr 23, 2018 9:00 pm
by Skateman
Is it worth (or even possible) upgrading if not using a r600 based GPU? (As i am using a Radeon R7 250)