Bug 2679 - X.org 6.8.2 does not activate DRI on i865 but says it does
Summary: X.org 6.8.2 does not activate DRI on i865 but says it does
Status: CLOSED NOTABUG
Alias: None
Product: DRI
Classification: Unclassified
Component: DRM/other (show other bugs)
Version: XOrg git
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-09 00:16 UTC by Brice Goglin
Modified: 2005-04-17 05:49 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg config (3.29 KB, text/plain)
2005-03-09 00:17 UTC, Brice Goglin
no flags Details
lspci -vv (6.31 KB, text/plain)
2005-03-09 00:17 UTC, Brice Goglin
no flags Details
dmesg output (13.29 KB, text/plain)
2005-03-09 00:18 UTC, Brice Goglin
no flags Details
Kernel config (2.6.11) (32.53 KB, text/plain)
2005-03-09 00:18 UTC, Brice Goglin
no flags Details
Xorg output (50.14 KB, text/plain)
2005-03-09 00:18 UTC, Brice Goglin
no flags Details
output of glxinfo (4.09 KB, text/plain)
2005-03-09 11:29 UTC, Brice Goglin
no flags Details
output of glxinfo under XFree 4.3.0 (2.18 KB, text/plain)
2005-03-10 09:27 UTC, Brice Goglin
no flags Details
output of XFree 4.3.0 (83.84 KB, text/plain)
2005-03-10 09:27 UTC, Brice Goglin
no flags Details

Description Brice Goglin 2005-03-09 00:16:21 UTC
Hi,

I am trying to use X.org 6.8.2 on my Debian Sarge.
My machine is a Dell Dimension 3000 with an Intel 865G Graphics Chipset.

0000:00:02.0 VGA compatible controller: Intel Corp. 82865G Integrated Graphics
Device (rev 02)

XFree 4.3.0 from Sarge works almost well but the i810 driver still has some bugs
so I tried X.org 6.8.2 (compiled by myself).
Xorg.log and glxinfo say DRI is enabled.
But every 3D programs I tried (especially crack-attack and quake3) are obviously
way slower than under XFree 4.3.0.
It looks to me that they are as slow as when DRI is disabled.

glxgears reports 500fps with XFree/DRI and 800 with XFree without DRI
(my processor is faster than my GPU ???)
glxgears under Xorg reports 800 too. That's why it looks like without DRI.

dmesg looks good except this:
mtrr: base(0xe8020000) is not aligned on a size(0x960000) boundary

.config, lspci, dmesg, xorg.conf and Xorg.0.log attached

Note that this Dell machine has a buggy BIOS which does not report Video RAM
well. I tried the i865 patch to fix it, but this didn't change anything.
This leads to Xorg.0.log containing things like:
(WW) I810(0): Detected stolen memory (8000 kB) doesn't match what the BIOS
reports (130880 kB)
(II) I810(0): I830CheckAvailableMemory: 441340 kB available
(--) I810(0): Pre-allocated VideoRAM: 8060 kByte
(==) I810(0): VideoRAM: 32768 kByte
Comment 1 Brice Goglin 2005-03-09 00:17:15 UTC
Created attachment 2052 [details]
Xorg config
Comment 2 Brice Goglin 2005-03-09 00:17:34 UTC
Created attachment 2053 [details]
lspci -vv
Comment 3 Brice Goglin 2005-03-09 00:18:04 UTC
Created attachment 2054 [details]
dmesg output
Comment 4 Brice Goglin 2005-03-09 00:18:27 UTC
Created attachment 2055 [details]
Kernel config (2.6.11)
Comment 5 Brice Goglin 2005-03-09 00:18:49 UTC
Created attachment 2056 [details]
Xorg output
Comment 6 Brice Goglin 2005-03-09 10:39:54 UTC
I played with kernel drivers a little bit.

Looks like XFree does not have DRI working when I load the i915 driver
instead of the traditional i830 which makes XFree DRI work.
I'm not sure whether XFree is supposed to work on this driver.
But if yes, then the breakage is probably in this kernel driver.

I tried i915 from 2.6.9, 2.6.10, 2.6.11 and the one that is provided with
Xorg 6.8.2 sources, none worked. They all lead to 800fps, that is no DRI.

Did somebody ever successfully use the i915 driver on a i865 chipset ?
Comment 7 Alan Hourihane 2005-03-09 11:08:53 UTC
Do this to check if DRI is enabled properly.

export LIBGL_DEBUG=1; glxinfo

and attach all the output here.
Comment 8 Brice Goglin 2005-03-09 11:29:02 UTC
Created attachment 2064 [details]
output of glxinfo

This output was generated with LIBGL_DEBUG=1.
But I didn't see any difference with the casewhere LIBGL_DEBUG is not defined.
Let me know if you want me to recompile Xorg with some debugging options.
Comment 9 Alan Hourihane 2005-03-09 11:45:02 UTC
According to the glxinfo output, DRI is enabled and working fine.
Comment 10 Brice Goglin 2005-03-09 12:46:33 UTC
(In reply to comment #9)
> According to the glxinfo output, DRI is enabled and working fine.

Yes, that's what I noticed too...

But the fact is that real 3D applications (something way complicated than
glxgears) is way slower under Xorg than under XFree86.
And disabling DRI and DRM in X.org doesn't change anything...
Basically Quake3 has about 1 fps in the main menu (didn't event try to start
a game) while it's totally playable under XFree86.
I didn't notice anything interesting when comparing their logs.
Crack-attack is very slow too.

Is there a better 3D benchmarks than glxgears somewhere ?
I'd like to get some real numbers.
Getting more frame with DRI disabled under XFree than with DRI enabled
is pretty boring...
Comment 11 Felix Kühling 2005-03-09 15:05:01 UTC
The glxinfo output looks ok, but you'll get more diagnostics when you set
  export LIBGL_DEBUG=verbose

Also try running real applications with this environment variable set. You
should see some diagnostics about what's going on while loading the 3D driver.

There is a known issue with some broken games what load libGL dynamically with
RTLD_LOCAL (though AFAIK Quake3 is not affected). A workaround is to export
LD_PRELOAD=/usr/lib/libGL.so.1.
Comment 12 Alan Hourihane 2005-03-10 01:31:58 UTC
(In reply to comment #10)

So what's the output from glxinfo under XFree86, and post the XFree86 logs for
comparison too.
Comment 13 Brice Goglin 2005-03-10 09:27:03 UTC
Created attachment 2074 [details]
output of glxinfo under XFree 4.3.0

Didn't see any interesting difference with Xorg.
Comment 14 Brice Goglin 2005-03-10 09:27:40 UTC
Created attachment 2075 [details]
output of XFree 4.3.0
Comment 15 Alan Hourihane 2005-03-10 09:39:25 UTC
Do you happen to have both i830 and i915 kernel drivers loaded ??
Comment 16 Alan Hourihane 2005-03-10 09:42:21 UTC
Actually, you might want to try adding this to your Device section.

VideoRAM 65536.

It seems your texture memory is a little lower under X.Org, and that will cause
problems with the games you are playing.
Comment 17 Brice Goglin 2005-03-10 10:24:54 UTC
(In reply to comment #16)
> Actually, you might want to try adding this to your Device section.
> 
> VideoRAM 65536.
> 
> It seems your texture memory is a little lower under X.Org, and that will
> cause problems with the games you are playing.

This works !!! Thanks a lot !

To be sure I understand all this:
Xorg and XFree use 32MBytes by default (maybe because my BIOS is too
buggy to report the real VideoRAM ?).
But Xorg uses a little bit more memory so that there's a little bit
less memory that remains available for textures ?

Actually, I used 131072 since lspci -vv says:
Region 0: Memory at e8000000 (32-bit, prefetchable) [size=128M]
Am I right ?

Anyway, thanks a lot !
You can now close this bug, sorry for the inconvenience guys, very good job.
Comment 18 Alan Hourihane 2005-03-10 10:47:16 UTC
Nothing to do with the VideoBIOS here. It's just X defaults to 32MB by default.

You are using quite a high resolution of 1600x1200 which under XFree86 gave you
around 8MB for textures, and now under X.Org you only have 2MB because it's
enabling tiling which should essentially make things even faster once it gets
enough texture memory.

With 65536, you should have around 34MB for textures now, and tiling enabled
which should make things fly as you can see.

Not a bug, just a config problem.
Comment 19 Marius Andreiana 2005-04-17 22:49:58 UTC
Is it possible to use by default 64mb of video memory in these cases, so OpenGL
works out of the box?

Thanks!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.