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
Created attachment 2052 [details] Xorg config
Created attachment 2053 [details] lspci -vv
Created attachment 2054 [details] dmesg output
Created attachment 2055 [details] Kernel config (2.6.11)
Created attachment 2056 [details] Xorg output
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 ?
Do this to check if DRI is enabled properly. export LIBGL_DEBUG=1; glxinfo and attach all the output here.
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.
According to the glxinfo output, DRI is enabled and working fine.
(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...
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.
(In reply to comment #10) So what's the output from glxinfo under XFree86, and post the XFree86 logs for comparison too.
Created attachment 2074 [details] output of glxinfo under XFree 4.3.0 Didn't see any interesting difference with Xorg.
Created attachment 2075 [details] output of XFree 4.3.0
Do you happen to have both i830 and i915 kernel drivers loaded ??
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.
(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.
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.
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.