Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
THIS close to making r300 work!
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
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Wed Sep 29, 2010 11:54 pm    Post subject: THIS close to making r300 work! Reply with quote

I'm trying to work with the x11 overlay, mesa-9999, gallium and all that, to try to get my r300 to actually do more than show me Firefox. You know, the stuff it does under Windoze.

I've just done eselect mesa set r300 gallium and eselect mesa set sw gallium. Outside of games, everything works. When I try to play gzdoom or doom3, I get a horizontal colourful mess, while the sound plays normally.

I'd appreciate any advice on what I'm missing. I feel like there's one last little step I've overlooked to make this all work.

And oh - I can't recompile any version of xf86-video-ati. I get this:

Code:

atombios_crtc.c:689: warning: dereferencing pointer 'spc5_ptr' does break strict-aliasing rules
atombios_crtc.c:690: warning: dereferencing pointer 'spc5_ptr' does break strict-aliasing rules
atombios_crtc.c:680: note: initialized from here
cc1: warning: dereferencing pointer 'adp3_ptr' does break strict-aliasing rules
cc1: warning: dereferencing pointer 'adp3_ptr' does break strict-aliasing rules
atombios_crtc.c:598: note: initialized from here
  CC     drmmode_display.lo
  CC     radeon_vbo.lo
drmmode_display.c: In function 'drmmode_xf86crtc_resize':
drmmode_display.c:1142: error: 'struct _ScrnInfoRec' has no member named 'pixmapPrivate'
make[2]: *** [drmmode_display.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-ati-6.13.1/work/xf86-video-ati-6.13.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-drivers/xf86-video-ati-6.13.1/work/xf86-video-ati-6.13.1'
make: *** [all] Error 2
emake failed
 * ERROR: x11-drivers/xf86-video-ati-6.13.1 failed:
 *   died running emake, base_src_make
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3290:  Called xorg-2_src_compile
 *   environment, line 4086:  Called base_src_compile
 *   environment, line  500:  Called base_src_make
 *   environment, line  538:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "died running emake, $FUNCNAME";
 *
 * If you need support, post the output of 'emerge --info =x11-drivers/xf86-video-ati-6.13.1',
 * the complete build log and the output of 'emerge -pqv =x11-drivers/xf86-video-ati-6.13.1'.
 * The complete build log is located at '/var/tmp/portage/x11-drivers/xf86-video-ati-6.13.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-drivers/xf86-video-ati-6.13.1/temp/environment'.
 * S: '/var/tmp/portage/x11-drivers/xf86-video-ati-6.13.1/work/xf86-video-ati-6.13.1'

>>> Failed to emerge x11-drivers/xf86-video-ati-6.13.1, Log file:

>>>  '/var/tmp/portage/x11-drivers/xf86-video-ati-6.13.1/temp/build.log'


This is for ANY version, including 9999.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Thu Sep 30, 2010 12:04 am    Post subject: Reply with quote

I get this when trying Xorg -configure:

Code:

[  2195.565] _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
[  2195.567] _XSERVTransOpen: transport open failed for inet6/Beethoven:0
[  2195.568] _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
[  2195.570]
X.Org X Server 1.9.0
Release Date: 2010-08-20
[  2195.574] X Protocol Version 11, Revision 0
[  2195.575] Build Operating System: Linux 2.6.35-zen2 i686 Gentoo
[  2195.576] Current Operating System: Linux Beethoven 2.6.35-zen2 #3 ZEN SMP PREEMPT Wed Sep 29 16:10:24 EST 2010 i686
[  2195.578] Kernel command line: root=/dev/sda4
[  2195.579] Build Date: 29 September 2010  05:42:33PM
[  2195.580] 
[  2195.581] Current version of pixman: 0.18.4
[  2195.583]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[  2195.585] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[  2195.589] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Sep 29 19:01:10 2010
[  2195.591] (II) Loader magic: 0x81e5d80
[  2195.591] (II) Module ABI versions:
[  2195.591]    X.Org ANSI C Emulation: 0.4
[  2195.591]    X.Org Video Driver: 9.0
[  2195.591]    X.Org XInput driver : 11.0
[  2195.591]    X.Org Server Extension : 4.0
[  2195.592] (--) PCI:*(0:1:0:0) 1002:5b60:1002:0602 rev 0, Mem @ 0xec000000/33554432, 0xefde0000/65536, I/O @ 0x0000dc00/256, BIOS @ 0x????????/131072
[  2195.592] (--) PCI: (0:1:0:1) 1002:5b70:1002:0603 rev 0, Mem @ 0xefdf0000/65536
[  2195.592] List of video drivers:
[  2195.593]    radeon
[  2195.595]    ati
[  2195.596]    fbdev
[  2195.597]    vesa
[  2195.598] (II) LoadModule: "radeon"
[  2195.599] (II) Loading /usr/lib/xorg/modules/drivers/radeon_drv.so
[  2195.599] (EE) Failed to load /usr/lib/xorg/modules/drivers/radeon_drv.so: /usr/lib/xorg/modules/drivers/radeon_drv.so: undefined symbol: miEmptyData
[  2195.600] (EE) LoadModule: Module radeon does not have a radeonModuleData data object.
[  2195.601] (II) UnloadModule: "radeon"
[  2195.601] (II) Unloading radeon
[  2195.601]
Backtrace:
[  2195.604] 0: Xorg (xorg_backtrace+0x38) [0x80e2f74]
[  2195.605] 1: /lib/libdl.so.2 (0xb7721000+0xcb4) [0xb7721cb4]
[  2195.606] 2: /lib/ld-linux.so.2 (0xb77c4000+0xe5b6) [0xb77d25b6]
[  2195.608] 3: /lib/libdl.so.2 (0xb7721000+0x10ac) [0xb77220ac]
[  2195.609] 4: /lib/libdl.so.2 (dlclose+0x2a) [0xb7721cea]
[  2195.610] 5: Xorg (0x8048000+0x10eb94) [0x8156b94]
[  2195.611] Segmentation fault at address 0x204
[  2195.612]
Fatal server error:
[  2195.615] Caught signal 11 (Segmentation fault). Server aborting
[  2195.616]
[  2195.617]
Please consult the The X.Org Foundation support
    at http://wiki.x.org
 for help.
[  2195.621] Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[  2195.623]

_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


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

PostPosted: Thu Sep 30, 2010 1:54 am    Post subject: Reply with quote

For some games you need patented texture compression from libtxc-dxtn.

Regarding the compile errors it looks like there is some version incompatibility or stale -9999 ebuilds. To use gallium, it should be enough to use kernel 2.6.35, libdrm-2.4.21, mesa-7.9_rc2, xorg-server-1.9.0, and xf86-video-ati-6.13.2. Note that for gallium you need KMS. X -configure no longer works with KMS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Thu Sep 30, 2010 3:52 am    Post subject: Reply with quote

chithanh wrote:
For some games you need patented texture compression from libtxc-dxtn.

Regarding the compile errors it looks like there is some version incompatibility or stale -9999 ebuilds. To use gallium, it should be enough to use kernel 2.6.35, libdrm-2.4.21, mesa-7.9_rc2, xorg-server-1.9.0, and xf86-video-ati-6.13.2. Note that for gallium you need KMS. X -configure no longer works with KMS.


Thanks for the advice! I'll check out the versions soon.

Trying to emerge libtxc gives:

Code:

>>> Downloading 'http://homepage.hispeed.ch/rscheidegger/dri_experimental/libtxc_dxtn070518.tar.gz'
--2010-09-29 22:44:43--  http://homepage.hispeed.ch/rscheidegger/dri_experimental/libtxc_dxtn070518.tar.gz
Resolving homepage.hispeed.ch... 80.109.240.78
Connecting to homepage.hispeed.ch|80.109.240.78|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://www.hispeed.ch/System/404/ [following]
--2010-09-29 22:44:48--  http://www.hispeed.ch/System/404/
Resolving www.hispeed.ch... 213.46.242.72
Connecting to www.hispeed.ch|213.46.242.72|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/usr/portage/distfiles/libtxc_dxtn070518.tar.gz'

    [  <=>                                                                      ] 16,081      54.2K/s   in 0.3s   

2010-09-29 22:44:54 (54.2 KB/s) - `/usr/portage/distfiles/libtxc_dxtn070518.tar.gz' saved [16081]

('Filesize does not match recorded size', 16081L, 10378)
!!! Fetched file: libtxc_dxtn070518.tar.gz VERIFY FAILED!
!!! Reason: Filesize does not match recorded size
!!! Got:      16081
!!! Expected: 10378
Refetching... File renamed to '/usr/portage/distfiles/libtxc_dxtn070518.tar.gz._checksum_failure_.1ZK3KL'

!!! Couldn't download 'libtxc_dxtn070518.tar.gz'. Aborting.
 * Fetch failed for 'media-libs/libtxc-dxtn-070518', Log file:
 *  '/var/tmp/portage/media-libs/libtxc-dxtn-070518/temp/build.log'

>>> Failed to emerge media-libs/libtxc-dxtn-070518, Log file:

>>>  '/var/tmp/portage/media-libs/libtxc-dxtn-070518/temp/build.log'

_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
chithanh
Developer
Developer


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

PostPosted: Thu Sep 30, 2010 6:29 am    Post subject: Reply with quote

Maybe try libtxc_dxtn instead of libtxc-dxtn.
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Thu Sep 30, 2010 10:03 am    Post subject: Reply with quote

Moved from Desktop Environments to Unsupported Software, topics related to overlay ebuilds belong in US.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Thu Sep 30, 2010 12:18 pm    Post subject: Reply with quote

you WILL need recent builds of:

- the kernel (2.6.35 or later)
- libdrm (the very latest you can get, ~arch should be OK)
- mesa (the very latest you can get)
- xf86-video-ati (the very latest you can get, ~arch should be OK)

You need to upgrade all of those at the same time, you can't mix and match. I suspect that your libdrm is seriously out of date, as xf86-video-ati is complaining about missing drm definitions. I've never had this happen when doing "emerge libdrm mesa xf86-video-ati".

Once you get all that running, you need to remove xorg.conf. Nowadays, it mostly gets in the way and breaks things. You don't need it unless you do multi-head stuff and other complicated things.

Then you can check what sort of renderer you are using with "glxinfo |grep ende". It should say something about DRI2, r300 and gallium.
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 848
Location: PL

PostPosted: Thu Sep 30, 2010 1:56 pm    Post subject: Reply with quote

that depends on your card. i'm not really having issues here.

i use

~arch kernel or zen-kernel (doesn't really matter) . kernel should have kms enabled, i think this is the preriquisite for dri2.

libdrm and mesa from x11 overlay.

standard ~arch xf86-video-ati

i didn't have issues with doom3, although recenlty shadows got messed up. it might be fixed in some git commit ( maybe it already is). the most important thing is that darkplaces works like a charm ;)
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Thu Sep 30, 2010 5:00 pm    Post subject: Reply with quote

I've apparently got gallium running, and KMS enabled, but whenever I have KMS enabled, I get glacial framerates. glxgears gives about 135 FPS, whereas without KMS I get over 1500.

This means gzdoom is very stilted. What am I missing?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Thu Sep 30, 2010 6:53 pm    Post subject: Reply with quote

With the Radeon frambugger taken out of the kernel, I get a whopping 60 fps. I'm trying frambugger as module (had it built-in before).

Also without framebugger, glxgears and games have that "every other video line is missing" look.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Thu Sep 30, 2010 7:02 pm    Post subject: Reply with quote

Please post the output of:

glxinfo |grep ende
dmesg |grep drm
cat /var/log/Xorg.0.log |grep EE

What happens when you run without any xorg.conf? Try "mv /etc/X11/xorg.conf /etc/X11/xorg.conf.old"
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Thu Sep 30, 2010 7:18 pm    Post subject: Reply with quote

I don't use an xorg.conf.

glxinfo | grep ende:
Code:

direct rendering: Yes
OpenGL renderer string: Gallium 0.4 on softpipe
    GL_NV_blend_square, GL_NV_conditional_render, GL_NV_light_max_exponent,


dmesg | grep drm:
Code:

[    9.947488] [drm] Initialized drm 1.1.0 20060810
[   10.041095] [drm] radeon defaulting to kernel modesetting.
[   10.041100] [drm] radeon kernel modesetting enabled.


I think the problem is here:
Code:

[   797.226] Current Operating System: Linux Beethoven 2.6.35-zen2 #6 ZEN SMP PREEMPT Thu Sep 30 13:52:16 EST 2010 i686
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   797.229] (II) Loading extension MIT-SCREEN-SAVER
[   797.232] (EE) module ABI major version (9) doesn't match the server's version (8)
[   797.232] (EE) Failed to load module "vesa" (module requirement mismatch, 0)
[   797.232] (EE) module ABI major version (9) doesn't match the server's version (8)
[   797.233] (EE) Failed to load module "fbdev" (module requirement mismatch, 0)
[   797.395] (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM


Failed to open DRM! How do I fix that?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Thu Sep 30, 2010 8:10 pm    Post subject: Reply with quote

Code:
OpenGL renderer string: Gallium 0.4 on softpipe

This means that you are using software rendering -- no acceleration at all.

Code:
[   797.232] (EE) module ABI major version (9) doesn't match the server's version (8)
[   797.232] (EE) Failed to load module "vesa" (module requirement mismatch, 0)
[   797.232] (EE) module ABI major version (9) doesn't match the server's version (8)
[   797.233] (EE) Failed to load module "fbdev" (module requirement mismatch, 0)
[   797.395] (EE) RADEON(0): [dri] RADEONDRIGetVersion failed to open the DRM

Your modules do not match your X server.

Which version of X are you using? If you are going to use -9999 builds, I suggest upgrading to the latest X available in ~arch, then recompiling libdrm, mesa and xf86-video-ati.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Thu Sep 30, 2010 8:20 pm    Post subject: Reply with quote

How do I enabled acceleration?

Does this count for anything?

eselect mesa list:
Code:

i915 (Intel 915, 945)
i965 (Intel 965, G/Q3x, G/Q4x)
r300 (Radeon R300-R500)
  classic                   
  gallium *                 
r600 (Radeon R600-R700)
  gallium *                 
sw (Software renderer)
  classic                   
  gallium *   


I'm using xorg-server-1.9. I just recompiled vesa and fbdev but I don't think those are the problem. Everything else is compiled against 1.9 and is up to date. I have the latest ~arch.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Thu Sep 30, 2010 8:24 pm    Post subject: Reply with quote

Does this sound familiar?

http://bugs.freedesktop.org/show_bug.cgi?id=30451

r600g works fine here, no such problems.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Thu Sep 30, 2010 8:37 pm    Post subject: Reply with quote

Does this mean I should bring back git versions of xorg, mesa and ati and apply this patch to the ati driver?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Thu Sep 30, 2010 10:35 pm    Post subject: Reply with quote

Have you tried with everything from portage? No git versions of anything?

That should always be the first thing you try. There is obviously a mismatch somewhere.
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Thu Sep 30, 2010 10:50 pm    Post subject: Reply with quote

Everything I have for xorg, mesa and drivers are from ~arch in portage. I tried git earlier and ran into the ati compile problem, which is why I'm wondering if I should go back to git and try to apply that patch. Or should I apply the patch to the working version from portage?
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
pingufunkybeat
l33t
l33t


Joined: 01 Dec 2004
Posts: 610

PostPosted: Fri Oct 01, 2010 12:11 am    Post subject: Reply with quote

EDIT: read something wrong.

I don't know. Stuff from ~arch in portage should simply work.

So everything compiles fine when you use stuff from portage, only you get softpipe instead of acceleration with r300g? Is that right?

Did you forget to do emerge @preserved-rebuild (with portage 2), or revdep-rebuild?
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Fri Oct 01, 2010 1:35 am    Post subject: Reply with quote

Yep. That's pretty much what happens. I'll run revdep-rebuild and see what happens.

EDIT: The only thing revdep-rebuild picked up was Cinelerra.
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 848
Location: PL

PostPosted: Fri Oct 01, 2010 8:49 am    Post subject: Reply with quote

i think module layout in mesa changed recently, so eselect mesa might pick wrong drivers.

never hurts to double check that.
_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Fri Oct 01, 2010 1:28 pm    Post subject: Reply with quote

It looks like eselect mesa picked the right drivers. What would be wrong with this?

Code:

i915 (Intel 915, 945)
i965 (Intel 965, G/Q3x, G/Q4x)
r300 (Radeon R300-R500)
  classic                   
  gallium *                 
r600 (Radeon R600-R700)
  gallium *                 
sw (Software renderer)
  classic                   
  gallium *

_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
Back to top
View user's profile Send private message
yoshi314
l33t
l33t


Joined: 30 Dec 2004
Posts: 848
Location: PL

PostPosted: Fri Oct 01, 2010 6:49 pm    Post subject: Reply with quote

if i remember right r300 gallium module changed its name.

check if you have symlinks like that
Code:
ls -l /usr/lib/dri

lrwxrwxrwx 1 root root 20 09-17 00:06 r300_dri.so -> ../mesa/r300g_dri.so
lrwxrwxrwx 1 root root 20 09-23 22:47 r300g_dri.so -> ../mesa/r300g_dri.so
lrwxrwxrwx 1 root root 20 09-17 00:06 r600_dri.so -> ../mesa/r600g_dri.so
lrwxrwxrwx 1 root root 20 09-23 22:47 r600g_dri.so -> ../mesa/r600g_dri.so
lrwxrwxrwx 1 root root 22 09-17 00:06 swrast_dri.so -> ../mesa/swrastg_dri.so
lrwxrwxrwx 1 root root 22 09-23 22:47 swrastg_dri.so -> ../mesa/swrastg_dri.so

_________________
~amd64
shrink your /usr/portage with squashfs+aufs
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6316
Location: /usr/lib64/lv2

PostPosted: Fri Oct 01, 2010 7:05 pm    Post subject: Reply with quote

That's exactly what I have.

I'm coming to the same conclusion I came to previously: that this card is orphaned and there's really naught to be done except move on.

Although I do want to be wrong!
_________________
Gentoo Studio: A Gentoo-based, professional digital audio workstation OS.
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