Mesa for Linux PPC

AmigaOne X1000 platform specific issues related to Linux only.
Post Reply
zzd10h
Posts: 546
Joined: Sun Sep 16, 2012 5:40 am
Location: France

Re: Mesa for Linux PPC

Post by zzd10h »

Thank you for your reply, I saw MESA updates, I hoped for RadeonSI support... ;)
http://apps.amistore.net/zTools
X1000 - AmigaOS 4.1.6 / 4.1 FE
User avatar
Srtest
Posts: 240
Joined: Wed Jun 11, 2014 5:06 pm

Re: Mesa for Linux PPC

Post by Srtest »

xeno74 wrote:Hi all,

I was able to patch the latest Mesa version 11.0.7 because of the problems with the wrong colors. It works with the right colors in 32-bit color depth.

Image

Download: MesaLib-11.0.7-powerpc-unofficial.tar.bz2

PLEASE use the unofficial Mesa version 10.0.4 if you want a stable and reliable 3D acceleration.

Image

Cheers,

Christian

After upgrading to 11.0.7 and replacing the patched r600 (using HD5870 card), it works except in the following conditions:

The logon screen (SDDM) is garbled up. Once in a while it looks ok but then extremely and unusablly slow.

The same effect impacts the loading screen of the newest SuperTuxCart which exits the game after the loading screen.

Thank you very much for the patch.
Attachments
9.png
20151218_022921.jpg
20151218_022947.jpg
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa for Linux PPC

Post by xeno74 »

Srtest wrote: After upgrading to 11.0.7 and replacing the patched r600 (using HD5870 card), it works except in the following conditions:

The logon screen (SDDM) is garbled up. Once in a while it looks ok but then extremely and unusablly slow.

The same effect impacts the loading screen of the newest SuperTuxCart which exits the game after the loading screen.

Thank you very much for the patch.
Many thanks for testing. OK, I think it is better to use the unofficial Mesa version 10.0.4.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

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

Re: Mesa for Linux PPC

Post by xeno74 »

Srtest wrote:Hey!

Debian has a new series Mesa: 11.1. It gave me some issues even with software rendering. Do you think you can patch it up?

Thanks,

Shy.

P.S => I'll be testing the new cards this weekend so it can help to test the latest release.
Here you are: MesaLib-11.1.0-powerpc-unofficial.tar.bz2

Thank you in advance for testing. :-)
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.
User avatar
Srtest
Posts: 240
Joined: Wed Jun 11, 2014 5:06 pm

Re: Mesa for Linux PPC

Post by Srtest »

I managed to configure a xorg.conf file by changing the "X -configure" command to "X :1 -configure" and I didn't even have to shutdown the server. What is different is the added "DRI3" option which can be enabled manually but with no hardware acceleration there isn't really a reason.
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa for Linux PPC

Post by xeno74 »

Srtest wrote:I managed to configure a xorg.conf file by changing the "X -configure" command to "X :1 -configure" and I didn't even have to shutdown the server. What is different is the added "DRI3" option which can be enabled manually but with no hardware acceleration there isn't really a reason.
Many many many thanks for this hint. I tested it with ubuntu MATE 16.04 PowerPC today.
phoronix.com wrote: Enabling the DRI3 support with a modern Linux graphics stack for the xf86-video-ati DDX can be done by simply adding Option "DRI3" "1" to your xorg.conf/xorg.conf.d (along with disabling SwapBuffersWait as always if benchmarking).
DRI2 vs. DRI3 Radeon Linux OpenGL Performance -- phoronix.com

cat /var/log/Xorg.0.log | grep -i DRI3

Code: Select all

[     7.247] (==) RADEON(0): DRI3 disabled
cat /var/log/Xorg.0.log | grep -i DRI2

Code: Select all

[     7.146] (II) Loading sub module "dri2"
[     7.146] (II) LoadModule: "dri2"
[     7.146] (II) Module "dri2" already built-in
[     7.244] (II) RADEON(0): [DRI2] Setup complete
[     7.244] (II) RADEON(0): [DRI2]   DRI driver: r600
[     7.244] (II) RADEON(0): [DRI2]   VDPAU driver: r600
[     7.368] (II) GLX: Initialized DRI2 GL provider for screen 0
Glxgears with DRI2:

vblank_mode=0 glxgears

Code: Select all

ATTENTION: default value of option vblank_mode overridden by environment.
5493 frames in 5.0 seconds = 1098.450 FPS
5472 frames in 5.0 seconds = 1094.367 FPS
5740 frames in 5.0 seconds = 1147.962 FPS
5779 frames in 5.0 seconds = 1155.630 FPS
5402 frames in 5.0 seconds = 1080.278 FPS
5550 frames in 5.0 seconds = 1109.869 FPS
5433 frames in 5.0 seconds = 1086.448 FPS
sudo vi /etc/X11/xorg.conf

Code: Select all

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "SWcursor"                  # [<bool>]
        #Option     "kmsdev"                    # <str>
        #Option     "ShadowFB"                  # [<bool>]
        Identifier  "Card0"
        Driver      "radeon"
        BusID       "PCI:1:0:0"
        Option      "SwapBuffersWait" "0"
        Option      "DRI3" "1"
EndSection
cat /var/log/Xorg.0.log | grep -i DRI3

Code: Select all

[     7.198] (**) RADEON(0): Option "DRI3" "1"
[     7.294] (**) RADEON(0): DRI3 enabled

Code: Select all

libGL error: failed to load driver: r600
But ... 3D acceleration works. Glxgears has the same values. That's strange. With Compiz I have much better glxgears values.

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

Running Linux on AmigaONEs can require some tinkering.
User avatar
Srtest
Posts: 240
Joined: Wed Jun 11, 2014 5:06 pm

Re: Mesa for Linux PPC

Post by Srtest »

Try this PPA (ppa:canonical-x/x-staging => WARNING!!! testing PPA) and then again with your updated patch.

And glxgears is not a benchmark. The guys from mesa say so themselves that sometimes better drivers and mesa versions produce lower results and the main thing is to get a result somewhere above 600.

By the way, I said warning in the voice of Alien Breed.
tlosmx
Beta Tester
Beta Tester
Posts: 195
Joined: Sat Feb 09, 2013 9:15 am

Re: Mesa for Linux PPC

Post by tlosmx »

for have a good benchmark on 3d you can use quake.
there is darkplace sdl for linux ppc is working good, but for my side i tested on quad g5 and linux ppc is gaving really less performance result compared the osx side.
osx = 480 fps 7800gtx nvidia
linux ppc = 157 fps 4650 radeon

letz hope i will have finally mate runnin again on quad for make more test with dri 3 and last patches from christian... and why not on x5000 too
AmigaOne Xe 933 mhz Radeon 9000pro Samsung 840 SSD
Pegasos2 1266mhz Radeon 9800pro Verbatib Sata3 SSD
Sam 460ex Lite 2gb Ram , Radeon 6670,Toshiba 500gb Sata/HDD
Amiga Cd32 / Amiga 600 / Amiga 500 / Amiga CDtv/ Amiga 4000 / Amiga 1200 /Amiga 2000 and many many many z3 Boards
User avatar
Srtest
Posts: 240
Joined: Wed Jun 11, 2014 5:06 pm

Re: Mesa for Linux PPC

Post by Srtest »

Xeno, when compiling your Mesa version does LLVM 3.7 uses the option "--enable-targets=host,r600"? seems important in the compilation of LLVM itself and means that radeonsi and r600 are not that different even if produced by LLVM much like in audio you have a 32bit case for a 24bit packet and vice versa or in video you have rgb levels on a digital video output. And after you check this out, maybe the same patch for r600 can be used for radeonsi at the Mesa level, because at its current state the driver is a complete mess for us and really not this driver that just waits for a little workaround to fix it. Egl-Glamor is broken which means no 2D (did you apply Wayland to egl-platforms on the compilation of your Mesa package?), and what is called "software rastesizer" is this little window that gives you quality/performance that is less than AOS without any driver (Southern Islands graphics are glamor only - no EXA). Overall system is ok like internet and word processing so it is usable because of the PA6T and that is important.

EDIT: https://reviews.freebsd.org/rP400484
https://reviews.freebsd.org/D3966
User avatar
xeno74
Posts: 9348
Joined: Fri Mar 23, 2012 7:58 am

Re: Mesa for Linux PPC

Post by xeno74 »

Srtest wrote:Xeno, when compiling your Mesa version does LLVM 3.7 uses the option "--enable-targets=host,r600"?
Hi Srtest,

Happy New Year. :-) I use LLVM from the standard Debian repository to build Mesa.

Code: Select all

I've looked at llvm configure script:
--enable-targets=r600 is equivalent to --enable-targets=amdgpu
--enable-targets=host is equivalent to --enable-targets=x86 on i686 or x86_64
--enable-targets=cpp has nothing to do with clang++. If you build and use that
Just for info:

The infrastructure changes for the PowerPC platform are mostly complete now, but the hardware drivers still haven't been adapted to them. That means the r600g driver needs to be adapted to changes in the way the Gallium3D infrastructure deals with big endian hosts.

Cheers,

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

Running Linux on AmigaONEs can require some tinkering.
Post Reply