You are viewing airlied

airlied
airlied
:.:..:.

July 2014
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

airlied [userpic]
glxgears on r500 hardware... for Easter.

So after spending the morning doing a crap load of driver package work for Fedora, I decided to play with the r300 driver on r500 hardware.

And after I played around a bit and wrote some filler code I managed to produce a working glxgears. I checked 4 times to make sure I wasn't sw rendering.

I'm really quite surprised how little actual time this took, texturing and actual frag prog stuff will take a bit more time, but if someone is interested (and a few people are) having a working base point makes things a lot easier.

So

on my drm branch:
http://cgit.freedesktop.org/~airlied/drm/log/?h=r500-fp

amd my mesa branch
http://cgit.freedesktop.org/~airlied/mesa/log/?h=r500test

all running on a Lenovo/IBM T60P with M56 FireGL in it.

I'd add a screenshot but you all know what a working gears looks like :)

Current Music: Radiohead - Bends
Comments
(Anonymous)
R300 update…

you're my hero :)
Keep up the good work !

almost...

Ok, I have

xf86-video-ati 5e3b21284482df9974c9a58f248f0100def2bb0c
drm 316979356f05796c5bd5a47dfc29fe48d6874b49
mesa ed18005a9940c26cafa5ed8ccadc46e2fbe63f9e

I know I'm close, but no workie. I had to change the evil cackle enabling chip ID to 71c5. I get this on glxinfo:

name of display: :0.0
libGL: XF86DRIGetClientDriverName: 5.3.0 r300 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/r300_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: Searching for BusID pci:0000:01:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:01:00.0
Warning, R520 detected, 3D HAHAHAHAHA!!.
libGL warning: 3D driver claims to not support visual 0x23
libGL warning: 3D driver claims to not support visual 0x24
libGL warning: 3D driver claims to not support visual 0x25
libGL warning: 3D driver claims to not support visual 0x26
libGL warning: 3D driver claims to not support visual 0x27
libGL warning: 3D driver claims to not support visual 0x28
libGL warning: 3D driver claims to not support visual 0x29
libGL warning: 3D driver claims to not support visual 0x2a
libGL warning: 3D driver claims to not support visual 0x2b
libGL warning: 3D driver claims to not support visual 0x2c
libGL warning: 3D driver claims to not support visual 0x2d
libGL warning: 3D driver claims to not support visual 0x2e
libGL warning: 3D driver claims to not support visual 0x2f
libGL warning: 3D driver claims to not support visual 0x30
libGL warning: 3D driver claims to not support visual 0x31
libGL warning: 3D driver claims to not support visual 0x32
Error: couldn't find RGB GLX visual

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x23 24 tc 0 32 0 r y . 0 8 8 8 0 24 8 0 0 0 0 0 0 None
0x24 24 tc 0 32 0 r y . 0 8 8 8 0 24 0 0 0 0 0 0 0 None
0x25 24 tc 0 32 0 r y . 0 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x26 24 tc 0 32 0 r y . 0 8 8 8 0 24 0 16 16 16 16 0 0 Slow
0x27 24 tc 0 32 0 r . . 0 8 8 8 0 24 8 0 0 0 0 0 0 None
0x28 24 tc 0 32 0 r . . 0 8 8 8 0 24 0 0 0 0 0 0 0 None
0x29 24 tc 0 32 0 r . . 0 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x2a 24 tc 0 32 0 r . . 0 8 8 8 0 24 0 16 16 16 16 0 0 Slow
0x2b 24 dc 0 32 0 r y . 0 8 8 8 0 24 8 0 0 0 0 0 0 None
0x2c 24 dc 0 32 0 r y . 0 8 8 8 0 24 0 0 0 0 0 0 0 None
0x2d 24 dc 0 32 0 r y . 0 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x2e 24 dc 0 32 0 r y . 0 8 8 8 0 24 0 16 16 16 16 0 0 Slow
0x2f 24 dc 0 32 0 r . . 0 8 8 8 0 24 8 0 0 0 0 0 0 None
0x30 24 dc 0 32 0 r . . 0 8 8 8 0 24 0 0 0 0 0 0 0 None
0x31 24 dc 0 32 0 r . . 0 8 8 8 0 24 8 16 16 16 16 0 0 Slow
0x32 24 dc 0 32 0 r . . 0 8 8 8 0 24 0 16 16 16 16 0 0 Slow
0x67 32 tc 0 32 0 r . . 0 8 8 8 0 0 0 0 0 0 0 0 0 Ncon

(Anonymous)
Re: almost...

I had that same problem exactly when testing stuff last night. I fixed it by upgrading to the xserver from git.

Re: almost...

Sigh...that sounds daunting. But probably not nearly as bad as I'm imagining.

(Anonymous)
inclusion in a future mesa release?

Excellent! When will a version of mesa/drm be released that supports glxgears on r500?

Re: inclusion in a future mesa release?

success, thanks for the help

.

(Anonymous)
Unbelievable

It's just hard to believe that there are people like you in this world :P ..
Extraordinary..

Woo!

Excellent work! Not long till I can consider AMD/ATI-based laptops, then?