drm/mesa/ati R5xx 3D support: What is the correct compilation order?
Stefan Becker
Stefan.Becker at nokia.com
Wed May 7 23:43:37 PDT 2008
Hi,
I tried to follow Alex's blog entry under
<http://www.botchco.com/agd5f/?p=27>
but I can't get any 3D to work on my Lenove T60 (Mobility X1300) with
Fedora 9. It uses xorg-x11-server-Xorg-1.4.99.901-29.20080415.fc9, i.e.
a relatively new xserver git.
Here is the order I figured out:
F9 libdrm RPM:
- update source from
<http://cgit.freedesktop.org/~agd5f/drm/?h=r345-cleanup>
- build
- install
F9 mesa RPM:
- update source from
<http://cgit.freedesktop.org/mesa/mesa/?h=r500-support>
- build
- install
xf86-video-ati driver:
- update to latest git
- compile
- install
kernel drm & radeon module:
- take source from libdrm RPM created above
- in linux-core: make DRM_MODULES=radeon
- copy radeon.ko & drm.ko to /lib/modules/$(uname -r)/updates
- depmod -ae
- remove old modules from memory: modprobe -r radeon
start X server:
- AIGLX now uses HW acceleration:
(==) AIGLX enabled
(II) AIGLX: Screen 0 is not DRI2 capable
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
(II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
(II) AIGLX: enabled GLX_texture_from_pixmap with driver support
(II) AIGLX: Loaded and initialized /usr/lib/dri/r300_dri.so
- glxinfo shows HW renderer is enabled
- glxgears (and others) still fail:
Warning, RV515 detected, 3D HAHAHAHAHA!!.
Mesa program:
-------------
# Fragment Program/Shader
0: MOV OUTPUT[0], INPUT[1];
1: END
drmRadeonCmdBuffer: -22
According to /usr/include/asm-generic/errno-base.h:
#define EINVAL 22 /* Invalid argument */
So it seems that the driver/DRI/DRM/mesa/AIGLX framework now plays
correctly together to detect r5xx HW 3D acceleration. But the mesa code
still can't submit microcode to the r5xx HW: mesa's r300 command buffer
flush is the source of the "drmRadeonCmdBuffer: -22" error message.
Am I missing something here or is it just that 3D still doesn't work for
the RV515 chip? It might be a good idea to post another blog entry with
the correct installation order so that uninitiated dummies like me can
get it right too...
HW info:
01:00.0 VGA compatible controller: ATI Technologies Inc M52 [Mobility
Radeon X1300]
01:00.0 0300: 1002:7149
(--) RADEON(0): Chipset: "ATI Mobility Radeon X1300" (ChipID = 0x7149)
Regards,
Stefan
---
Stefan Becker
E-Mail: Stefan.Becker at nokia.com
More information about the xorg-driver-ati
mailing list