Mesa for Linux PPC

AmigaOne X1000 platform specific issues related to Linux only.
Post Reply
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by marcus »

FYI: I tested Jason's "be-fixes" branch (http://cgit.freedesktop.org/~jekstrand/ ... p/be-fixes) without any additional patches. The results were:

32-bit root window: Still no visuals available

16-bit root window:

Software rendering (Gallium 0.4 on softpipe): Correct colours in glxgears

Hardware rendering (Gallium 0.4 on AMD TURKS (DRM 2.40.0)): Wrong colours in glxgears
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

marcus wrote:FYI: I tested Jason's "be-fixes" branch (http://cgit.freedesktop.org/~jekstrand/ ... p/be-fixes) without any additional patches. The results were:

32-bit root window: Still no visuals available

16-bit root window:

Software rendering (Gallium 0.4 on softpipe): Correct colours in glxgears

Hardware rendering (Gallium 0.4 on AMD TURKS (DRM 2.40.0)): Wrong colours in glxgears
Many thanks for testing. OK, Oded's patches didn't solve our problems. :-( Correct?
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by marcus »

Not all of them at least...

Only one patch by Oded is on the branch (the swizzle one), the other one is still under debate (and Oded himself had some new thoughts on it). There are a few other patches by Marek and by Jason himself, there might be more. I'm hoping for this one for example: http://lists.freedesktop.org/archives/m ... 91284.html :-)
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

marcus wrote:Not all of them at least...

Only one patch by Oded is on the branch (the swizzle one), the other one is still under debate (and Oded himself had some new thoughts on it). There are a few other patches by Marek and by Jason himself, there might be more. I'm hoping for this one for example: http://lists.freedesktop.org/archives/m ... 91284.html :-)
Thank you very much for your information and thank you for testing! I've found some further information today.

[Mesa-dev] [PATCH] mesa/formats: Only do byteswapping for packed formats: http://lists.freedesktop.org/archives/m ... 91186.html

PLEASE cross your fingers that the guys can solve the problems. I hope we can activate 3D acceleration with the right colors on AMD Radeon HD 7XXX graphics cards and higher. The new AMDGPU kernel DRM driver is already compiled as a kernel module and included in the kernel 4.2 package. ;-)

Cheers,

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

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

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

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

Running Linux on AmigaONEs can require some tinkering.
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by marcus »

Small update: All commits on Jason's "be-fixes" branch have now been merged to the master branch (which will become Mesa 11). This includes Oded's "v2" patch.

No further improvment in behaviour, as far as I can tell.
User avatar
xeno74
Posts: 9349
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

marcus wrote:Small update: All commits on Jason's "be-fixes" branch have now been merged to the master branch (which will become Mesa 11). This includes Oded's "v2" patch.

No further improvment in behaviour, as far as I can tell.
Have you compiled it yet?
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

I tried it out without patching today.

Code: Select all

git clone git://anongit.freedesktop.org/mesa/mesa mesa-git

Code: Select all

./autogen.sh --prefix /usr/local/mesa-git --with-gallium-drivers="r600,swrast" --enable-texture-float

Code: Select all

make

Code: Select all

su

Code: Select all

make install

Code: Select all

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

Code: Select all

LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
libGL: OpenDriver: trying /usr/local/mesa-git/lib/dri/r600_dri.so
libGL: Can't open configuration file /home/christian/.drirc: No such file or directory.
libGL: Can't open configuration file /home/christian/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: r600
libGL: OpenDriver: trying /usr/local/mesa-git/lib/dri/swrast_dri.so
libGL: Can't open configuration file /home/christian/.drirc: No such file or directory.
libGL: Can't open configuration file /home/christian/.drirc: No such file or directory.
display: :0 screen: 0
direct rendering: Yes

Code: Select all

glxinfo | grep -i opengl
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: r600
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on softpipe
OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.0.0-devel (git-86a72ee)
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 11.0.0-devel (git-86a72ee)
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
After loading the unofficial Mesa 10.0.4 all problems were gone.

Code: Select all

export LD_LIBRARY_PATH=/usr/local/mesa-10.0.4/lib/
OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD BARTS
OpenGL core profile version string: 3.1 (Core Profile) Mesa 10.0.4
OpenGL core profile shading language version string: 1.40
OpenGL core profile context flags: (none)
OpenGL core profile extensions:
OpenGL version string: 3.0 Mesa 10.0.4
OpenGL shading language version string: 1.30
OpenGL context flags: (none)
OpenGL extensions:
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by xeno74 »

Unfortunately the problems are still exist in Mesa. You still need our unofficial Mesa versions to get 3D acceleration on new Linux distributions.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
marcus
Posts: 56
Joined: Wed Nov 07, 2012 8:07 pm

Re: Mesa 9.2.2-1 and 10.0.0-1

Post by marcus »

The patch for the fbConfig issue (by Michel Dänzer) is neither on be-fixes or master. I did try including it manually though, but it did not work for me. Only 16-bit root window works. :-/
Post Reply