Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Enabling gallium3d in my Ati
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
Frostwarrior
Apprentice
Apprentice


Joined: 02 Mar 2007
Posts: 165

PostPosted: Tue Jun 29, 2010 1:25 pm    Post subject: Enabling gallium3d in my Ati Reply with quote

Hello there. I was curious about the state of the gallium3d radeon drivers. So i decided to config it.

This is my card:
Code:
01:05.0 VGA compatible controller: ATI Technologies Inc Radeon HD 3200 Graphics


With the kernel 2.6.34, with this entry in grub.cfg:
Code:
menuentry "Gentoo GNU/Linux 2.6.34" {
    set root=(hd0,2)
    linux /kernel-2.6.34-gentoo root=/dev/sda7 radeon.modeset=1
}


And configured like that:
Code:
Device Drivers  --->
    Graphics support  --->
        <*> /dev/agpgart (AGP Support)  --->                                     
        -*- VGA Arbitration                                                       
        (16)  Maximum number of GPUs                                             
        [ ] Laptop Hybrid Grapics - GPU switching support                         
        <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->
            < >   3dfx Banshee/Voodoo3+                                       
            < >   ATI Rage 128                                                 
            <*>   ATI Radeon                                                   
            [*]     Enable modesetting on radeon by default - NEW DRIVER       
        <*> Lowlevel video output switch controls                                 
        -*- Support for frame buffer devices  --->       
            [*]   Enable firmware EDID                         
            [ ]   Framebuffer foreign endianness support  --->
            [*]   Enable Video Mode Handling Helpers           
            [*]   Enable Tile Blitting Support                 
            *** Frame buffer hardware drivers ***       
            < >   Cirrus Logic support                         
            < >   Permedia2 support                           
        < > CyberPro 2000/2010/5000 support                                       
        < > Arc Monochrome LCD board support                                     
        [ ] Asiliant (Chips) 69000 display support                               


I moved into mesa-9999, libdrm-9999 and xf86-video-radeon-9999, with these use flags:
Code:
[I] media-libs/mesa
     Available versions:  7.5.2 7.7.1 (~)7.8.2 {M}(~)9999[1]
     Installed versions:  9999[1](11:41:50 PM 06/28/2010)(classic gallium llvm nptl video_cards_nouveau video_cards_r600 video_cards_radeon xcb -debug -kernel_FreeBSD -motif -pic -selinux -video_cards_i810 -video_cards_i915 -video_cards_i965 -video_cards_intel -video_cards_mach64 -video_cards_mga -video_cards_none -video_cards_r100 -video_cards_r128 -video_cards_r200 -video_cards_r300 -video_cards_radeonhd -video_cards_savage -video_cards_sis -video_cards_tdfx -video_cards_via -video_cards_vmware)

[I] x11-libs/libdrm
     Available versions:  2.4.13!t 2.4.15!t (~)2.4.16!t (~)2.4.17!t (~)2.4.18_pre20100211!t 2.4.18_pre20100211-r1!t (~)2.4.18!t (~)2.4.19!t (~)2.4.20!t (~)2.4.21!t (~)2.4.21-r1!t[1] {M}(~)9999!t[1]
     Installed versions:  9999!t[1](08:33:33 PM 06/28/2010)(video_cards_nouveau video_cards_radeon -libkms -static-libs -video_cards_intel -video_cards_vmware)

[I] x11-drivers/xf86-video-ati
     Available versions:  6.12.1-r1 6.12.5 6.12.6 (~)6.12.7 (~)6.13.0 {M}(~)9999[1] {debug}
     Installed versions:  9999[1](08:34:21 PM 06/28/2010)

[1] "x11" /usr/local/portage/layman/x11


I configured X like that:
http://pastebin.com/U9FN4U2q

Make sure opengl isn't linked to my nvidia libraries:
Code:
# eselect opengl list
Available OpenGL implementations:
  [1]   nvidia
  [2]   xorg-x11 *


And the gallium3d drivers are enabled:
Code:
# eselect mesa list
i915 (Intel 915, 945)
i965 (Intel 965, G/Q3x, G/Q4x)
r300 (Radeon R300-R500)
  gallium                   
r600 (Radeon R600-R700)
  classic                   
  gallium *                 
sw (Software renderer)
  classic                   
  gallium *

(Yeah, I enabled gallium in the soft render but doesn't really works. And that's another story :( )

But still I have soft renderer:
Code:
$ glxinfo | grep Open
OpenGL vendor string: VMware, Inc.
OpenGL renderer string: Gallium 0.4 on llvmpipe
OpenGL version string: 2.1 Mesa 7.9-devel
OpenGL shading language version string: 1.20
OpenGL extensions:



Any help with this? thanks in advance.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Tue Jun 29, 2010 5:06 pm    Post subject: Reply with quote

r600 gallium is not very useful at this time.

Why only software rendering is enabled, you might find out by looking at dmesg or Xorg.0.log .
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Tue Jun 29, 2010 5:07 pm    Post subject: Reply with quote

1) Are you sure you want to do this? The driver does not work.

2) I think that you need to patch Mesa to have the drivers actually use the hardware instead of llvmpipe. If you actually do this, it will likely crash as soon as you try using it.

The r600g driver was merged just to get it into a public repository, the devs are warning people not to use it, even as extreme sport pre-alpha test drive.
Back to top
View user's profile Send private message
Frostwarrior
Apprentice
Apprentice


Joined: 02 Mar 2007
Posts: 165

PostPosted: Tue Sep 07, 2010 3:07 am    Post subject: Reply with quote

Hello there.
Since I heard r600 now has some capabilities, I tried to do what I specified in the first post again, but for some reason Xorg fallbacks to soft renderer.

Here is my Xorg.log:
http://pastebin.com/raw.php?i=XSYnrqQ1

Any help with this please?
Back to top
View user's profile Send private message
chithanh
Developer
Developer


Joined: 05 Aug 2006
Posts: 2152
Location: Berlin, Germany

PostPosted: Tue Sep 07, 2010 7:22 am    Post subject: Reply with quote

Code:
[  3871.923] drmOpenDevice: node name is /dev/dri/card0
[  3871.923] drmOpenDevice: open result is 8, (OK)
[  3871.923] drmOpenByBusid: Searching for BusID pci:0000:01:05.0
[  3871.923] drmOpenDevice: node name is /dev/dri/card0
[  3871.923] drmOpenDevice: open result is 8, (OK)
[  3871.923] drmOpenByBusid: drmOpenMinor returns 8
[  3871.923] drmOpenByBusid: Interface 1.4 failed, trying 1.1
[  3871.923] drmOpenByBusid: drmGetBusid reports pci:0000:01:05.0
[  3871.955] (II) AIGLX: Screen 0 is not DRI2 capable
[  3871.955] (II) AIGLX: Screen 0 is not DRI capable
It appears that something is wrong with drm in kernel. But before seeing dmesg I can only speculate. (Post here, not pastebin)
Code:
[  3871.950] (WW) RADEON(0): Option "UseEDIDFreqs" is not used
[  3871.950] (WW) RADEON(0): Option "DPI" is not used
Furthermore it seems that you have old cruft in xorg.conf which sometimes causes trouble. Rename or remove your xorg.conf, it is not necessary any more.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum