[Mesa-users] I can't compel mesa run as r600dri or even as llvmpipe swrastg

Jiri Moravec jim.lkml at gmail.com
Sun May 2 07:15:12 PDT 2010


Hi,

I have 2 problem with my mesa
1) I can't replace swrast with r600 dri.
2) I can't even run gallium swrastg.

My system:
Gentoo amd64, IGP RS780
xorg-server-1.8.0, libdrm-2.4.20,
xf86-video-ati-9999(git://anongit.freedesktop.org/git/xorg/driver/xf86-video-ati:master),
mesa-9999(git://anongit.freedesktop.org/mesa/mesa:master)
results are same with xf86-video-ati-6.13.0 and mesa-7.8.1

1)
dmesg:
----------------------------------------------------------------------------
...
[    1.308979] [drm] Initialized drm 1.1.0 20060810
[    1.309303] [drm] radeon defaulting to kernel modesetting.
[    1.309361] [drm] radeon kernel modesetting enabled.
[    1.309514] radeon 0000:01:05.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[    1.309574] radeon 0000:01:05.0: setting latency timer to 64
[    1.313145] [drm] radeon: Initializing kernel modesetting.
[    1.313359] [drm] register mmio base: 0xFE9F0000
[    1.313415] [drm] register mmio size: 65536
[    1.314195] ATOM BIOS: B27722
[    1.314270] [drm] Clocks initialized !
[    1.314558] [drm] Detected VRAM RAM=256M, BAR=256M
[    1.314617] [drm] RAM width 32bits DDR
[    1.314898] [TTM] Zone  kernel: Available graphics memory: 1958874 kiB.
[    1.315098] [drm] radeon: 256M of VRAM memory ready
[    1.315165] [drm] radeon: 512M of GTT memory ready.
[    1.315449] [drm] radeon: irq initialized.
[    1.315506] [drm] GART: num cpu pages 131072, num gpu pages 131072
[    1.316638] [drm] Loading RS780 Microcode
[    1.316703] platform radeon_cp.0: firmware: using built-in firmware radeon/RS780_pfp.bin
[    1.316792] platform radeon_cp.0: firmware: using built-in firmware radeon/RS780_me.bin
[    1.316880] platform radeon_cp.0: firmware: using built-in firmware radeon/R600_rlc.bin
[    1.349821] [drm] ring test succeeded in 1 usecs
[    1.350066] [drm] radeon: ib pool ready.
[    1.350882] [drm] ib test succeeded in 0 usecs
[    1.350937] [drm] Enabling audio support
[    1.353447] [drm] Radeon Display Connectors
[    1.353550] [drm] Connector 0:
[    1.353602] [drm]   VGA
[    1.353654] [drm]   DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c
[    1.353735] [drm]   Encoders:
[    1.353787] [drm]     CRT1: INTERNAL_KLDSCP_DAC1
[    1.353840] [drm] Connector 1:
[    1.353891] [drm]   DVI-D
[    1.353942] [drm]   HPD3
[    1.353994] [drm]   DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c
[    1.354645] [drm]   Encoders:
[    1.354697] [drm]     DFP3: INTERNAL_KLDSCP_LVTMA
[    1.495391] [drm] fb mappable at 0xD0141000
[    1.495447] [drm] vram apper at 0xD0000000
[    1.495499] [drm] size 7680000
[    1.495551] [drm] fb depth is 24
[    1.495603] [drm]    pitch is 6400
[    1.546465] Console: switching to colour frame buffer device 133x50
[    1.718264] fbcondecor: console 0 using theme 'natural_gentoo'
[    1.863016] fbcondecor: switched decor state to 'on' on console 0
[    1.864782] fb0: radeondrmfb frame buffer device
[    1.865141] registered panic notifier
[    1.865423] [drm] Initialized radeon 2.0.0 20080528 for 0000:01:05.0 on minor 0
...
----------------------------------------------------------------------------

/var/log/Xorg.0.log:
----------------------------------------------------------------------------
...
[ 14965.041] (II) Loading /usr/lib64/xorg/modules/extensions/libdri.so
[ 14965.041] (II) Module dri: vendor="X.Org Foundation"
[ 14965.041]    compiled for 1.8.0, module version = 1.0.0
[ 14965.041]    ABI class: X.Org Server Extension, version 3.0
[ 14965.041] (II) Loading extension XFree86-DRI
[ 14965.041] (II) LoadModule: "dri2"
[ 14965.042] (II) Loading /usr/lib64/xorg/modules/extensions/libdri2.so
[ 14965.042] (II) Module dri2: vendor="X.Org Foundation"
[ 14965.042]    compiled for 1.8.0, module version = 1.2.0
[ 14965.042]    ABI class: X.Org Server Extension, version 3.0
[ 14965.042] (II) Loading extension DRI2
[ 14965.042] (II) LoadModule: "radeon"
[ 14965.042] (II) Loading /usr/lib64/xorg/modules/drivers/radeon_drv.so
[ 14965.043] (II) Module radeon: vendor="X.Org Foundation"
[ 14965.043]    compiled for 1.8.0, module version = 6.13.99
[ 14965.043]    Module class: X.Org Video Driver
[ 14965.043]    ABI class: X.Org Video Driver, version 7.0
...
[ 14965.207] (II) RADEON(0): [DRI2] Setup complete
[ 14965.207] (II) RADEON(0): [DRI2]   DRI driver: r600
[ 14965.207] (II) RADEON(0): Front buffer size: 8400K
[ 14965.207] (II) RADEON(0): VRAM usage limit set to 221389K
[ 14965.207] (==) RADEON(0): Backing store disabled
[ 14965.207] (II) RADEON(0): Direct rendering enabled
[ 14965.207] (II) RADEON(0): Setting EXA maxPitchBytes
[ 14965.207] (II) EXA(0): Driver allocated offscreen pixmaps
[ 14965.207] (II) EXA(0): Driver registered support for the following operations:
[ 14965.207] (II)         Solid
[ 14965.207] (II)         Copy
[ 14965.207] (II)         Composite (RENDER acceleration)
[ 14965.208] (II)         UploadToScreen
[ 14965.208] (II)         DownloadFromScreen
[ 14965.208] (II) RADEON(0): Acceleration enabled
[ 14965.208] (**) RADEON(0): DPMS enabled
[ 14965.208] (==) RADEON(0): Silken mouse enabled
[ 14965.208] (II) RADEON(0): Set up textured video
[ 14965.208] (II) RADEON(0): RandR 1.2 enabled, ignore the following RandR disabled message.
[ 14965.209] (--) RandR disabled
[ 14965.209] (II) Initializing built-in extension Generic Event Extension
[ 14965.209] (II) Initializing built-in extension SHAPE
[ 14965.209] (II) Initializing built-in extension MIT-SHM
[ 14965.209] (II) Initializing built-in extension XInputExtension
[ 14965.209] (II) Initializing built-in extension XTEST
[ 14965.209] (II) Initializing built-in extension BIG-REQUESTS
[ 14965.209] (II) Initializing built-in extension SYNC
[ 14965.209] (II) Initializing built-in extension XKEYBOARD
[ 14965.209] (II) Initializing built-in extension XC-MISC
[ 14965.209] (II) Initializing built-in extension XINERAMA
[ 14965.209] (II) Initializing built-in extension XFIXES
[ 14965.209] (II) Initializing built-in extension RENDER
[ 14965.209] (II) Initializing built-in extension RANDR
[ 14965.209] (II) Initializing built-in extension COMPOSITE
[ 14965.209] (II) Initializing built-in extension DAMAGE
[ 14965.216] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[ 14965.216] (II) AIGLX: enabled GLX_INTEL_swap_event
[ 14965.216] (II) AIGLX: enabled GLX_SGI_make_current_read
[ 14965.216] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[ 14965.216] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[ 14965.217] (II) AIGLX: Loaded and initialized /usr/lib64/dri/r600_dri.so
[ 14965.217] (II) GLX: Initialized DRI2 GL provider for screen 0
[ 14965.217] (II) RADEON(0): Setting screen physical size to 363 x 272
...
----------------------------------------------------------------------------

It looks like everything is OK, but my glxinfo still report this:
----------------------------------------------------------------------------
OpenGL vendor string: Mesa Project
OpenGL renderer string: Software Rasterizer
OpenGL version string: 2.1 Mesa 7.9-devel
OpenGL shading language version string: 1.20
----------------------------------------------------------------------------

Guy reporting "https://bugs.freedesktop.org/attachment.cgi?id=34651" has slighly different GPU (RV670), his dmesg and Xorg.0.log are almost same as my logs, but his glxinfo is different:
----------------------------------------------------------------------------
OpenGL vendor string: Advanced Micro Devices, Inc.
OpenGL renderer string: Mesa DRI R600 (RV670 9505) 20090101  TCL DRI2
OpenGL version string: 2.0 Mesa 7.9-devel
OpenGL shading language version string: 1.10
----------------------------------------------------------------------------



More information about the mesa-users mailing list