| Summary: | X.org 6.8.2 does not activate DRI on i865 but says it does | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | DRI | Reporter: | Brice Goglin <bgoglin> | ||||||||||||||||||
| Component: | DRM/other | Assignee: | Default DRI bug account <dri-devel> | ||||||||||||||||||
| Status: | CLOSED NOTABUG | QA Contact: | |||||||||||||||||||
| Severity: | normal | ||||||||||||||||||||
| Priority: | high | CC: | marius.andreiana | ||||||||||||||||||
| Version: | XOrg git | ||||||||||||||||||||
| Hardware: | x86 (IA32) | ||||||||||||||||||||
| OS: | Linux (All) | ||||||||||||||||||||
| Whiteboard: | |||||||||||||||||||||
| i915 platform: | i915 features: | ||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||
|
Description
Brice Goglin
2005-03-09 00:16:21 UTC
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.