Bug 5792 - glxinfo & Xorg log direct rendering disagree. No errors
Summary: glxinfo & Xorg log direct rendering disagree. No errors
Status: RESOLVED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: General (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: 2006-02-02 05:27 UTC by Koby
Modified: 2006-02-09 11:54 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg startup logs (70.67 KB, text/plain)
2006-02-02 05:28 UTC, Koby
no flags Details
result of "export LIBGL_DEBUG_VERBOSE=y; glxinfo" (4.61 KB, text/plain)
2006-02-02 05:30 UTC, Koby
no flags Details
result of "export LIBGL_DEBUG=verybose; glxinfo" (4.54 KB, text/plain)
2006-02-02 07:17 UTC, Koby
no flags Details
Response to comment 17 (70.00 KB, text/plain)
2006-02-04 09:07 UTC, Koby
no flags Details

Description Koby 2006-02-02 05:27:24 UTC
xorg log shows direct rendering enabled, no errors or any other indication of
failure. glxinfo shows direct rendering disabled - using Mesa Indirect.

How do I actually enable the driver, and why do the reports disagree? 
ref bug 3982. - This one has an old version of libGL, my machine does not, AFAIK.

Attaching verbose glxinfo and xorg logs

Thanks!
Comment 1 Koby 2006-02-02 05:28:27 UTC
Created attachment 4534 [details]
Xorg startup logs
Comment 2 Koby 2006-02-02 05:30:18 UTC
Created attachment 4535 [details]
result of "export LIBGL_DEBUG_VERBOSE=y; glxinfo"
Comment 3 Koby 2006-02-02 05:33:27 UTC
Sorry - forgot some system info:

700m inspiron laptop - Intel i855 chipset.
Fedora Core 4 version of xorg. Result of rpm -qa|grep xorg:

xorg-x11-doc-6.8.2-37.FC4.49.2
fonts-xorg-base-6.8.2-1
xorg-x11-xauth-6.8.2-37.FC4.49.2
xorg-x11-Mesa-libGLU-6.8.2-37.FC4.49.2
xorg-x11-twm-6.8.2-37.FC4.49.2
xorg-x11-Xdmx-6.8.2-37.FC4.49.2
xorg-x11-libs-6.8.2-37.FC4.49.2
xorg-x11-Mesa-libGL-6.8.2-37.FC4.49.2
xorg-x11-Xvfb-6.8.2-37.FC4.49.2
xorg-x11-6.8.2-37.FC4.49.2
xorg-x11-xdm-6.8.2-37.FC4.49.2
xorg-x11-tools-6.8.2-37.FC4.49.2
xorg-x11-font-utils-6.8.2-37.FC4.49.2
xorg-x11-xfs-6.8.2-37.FC4.49.2
xorg-x11-deprecated-libs-6.8.2-37.FC4.49.2
xorg-x11-devel-6.8.2-37.FC4.49.2
xorg-x11-Xnest-6.8.2-37.FC4.49.2
xorg-x11-sdk-6.8.2-37.FC4.49.2

Thanks!
Comment 4 Felix Kühling 2006-02-02 07:08:14 UTC
(In reply to comment #2)
> Created an attachment (id=4535) [edit]
> result of "export LIBGL_DEBUG_VERBOSE=y; glxinfo"
> 

Try it with LIBGL_DEBUG=verbose.
Comment 5 Koby 2006-02-02 07:17:33 UTC
Created attachment 4536 [details]
result of "export LIBGL_DEBUG=verybose; glxinfo"
Comment 6 Koby 2006-02-02 07:17:55 UTC
Done - added attachment.

(In reply to comment #5)
> Created an attachment (id=4536) [edit]
> result of "export LIBGL_DEBUG=verybose; glxinfo"
> 

Comment 7 Felix Kühling 2006-02-02 07:56:27 UTC
Looks like everything works OK in libGL but the screen or context creation fails
silently inside the 3D driver. Someone who can reproduce the problem needs to
debug the driver and find out what's wrong.
Comment 8 Koby 2006-02-02 08:31:09 UTC
Well, I do know my way around C++, but I'm a java developer, so haven't played
with it in awhile. If you can give me instructions and point me in the direction
of docs, I'd love to play with it again. :)

Thanks!

(In reply to comment #7)
> Looks like everything works OK in libGL but the screen or context creation fails
> silently inside the 3D driver. Someone who can reproduce the problem needs to
> debug the driver and find out what's wrong.

Comment 9 Felix Kühling 2006-02-02 11:25:26 UTC
Erm, I wasn't paying attention. You're still running Xorg 6.8.2? Before you go
into debugging the problem, try if the latest drivers fix this issue. Take a
look at
http://dri.freedesktop.org/wiki/Download#head-55420c59a1c2e9a70f07a6fa02f0d228ffb87b76.
In particular pay attention to the section "Upgrading to Xorg 6.9" before
installing the binary snapshots. Then download and install the latest common and
i915 snapshots.
Comment 10 Koby 2006-02-02 13:08:01 UTC
Upgraded to latest snapshot, now getting error when running "export
LIBGL_DEBUG_VERBOSE=y; glxinfo"

Here's the dump:
ERROR!  sizeof(I830DRIRec) does not match passed size from device driver
libGL warning: 3D driver returned no fbconfigs.
libGL error: InitDriver failed
libGL error: reverting to (slow) indirect rendering

What's an I830DRIRec? :)

In my xorg.conf, do I still use the i810 as the display driver?

Thanks!
Comment 11 Felix Kühling 2006-02-03 06:14:56 UTC
I830DRIRec is a data structure shared by 2D and 3D driver. If the size doesn't
match that probably means that you're using a bad combination of 2D and 3D
drivers. Make sure that both are from the i915 snapshot you installed. After
installing the snapshots, you need to kill the Xserver, unload the i915 and drm
kernel modules and restart the Xserver. On the Xserver side i810 is still the
right driver. BTW, I'm assuming you're not using a 64-bit OS?
Comment 12 Koby 2006-02-03 06:33:18 UTC
Nope - no 64bit OS. I've tried that, and am getting the same error. Here is what
I did.

init 3
/sbin/rmmod i915
/sbin/rmmod dri
reran i915-200.../install.sh
init 5

Any other thoughts? Or am I doning this wrong?

(In reply to comment #11)
> I830DRIRec is a data structure shared by 2D and 3D driver. If the size doesn't
> match that probably means that you're using a bad combination of 2D and 3D
> drivers. Make sure that both are from the i915 snapshot you installed. After
> installing the snapshots, you need to kill the Xserver, unload the i915 and drm
> kernel modules and restart the Xserver. On the Xserver side i810 is still the
> right driver. BTW, I'm assuming you're not using a 64-bit OS?

Comment 13 Felix Kühling 2006-02-03 09:26:16 UTC
Check your Xorg.0.log file to find out which i810_drv.so it is loading. It
should load the one from /usr/X11R6/lib/modules/drivers/. Also run
LIBGL_DEBUG=verbose glxinfo. It should tell you, which i915_dri.so it is
loading. It should load the one from /usr/X11R6/lib/modules/dri/. If any of
these don't match, try to find out why. Check the Files section in your
xorg.conf and make sure that the environment variable LIBGL_DRIVERS_PATH isn't
pointing to some strange location. Also the driver binary i810_drv.so and
i915_dri.so files in /usr/X11R6/lib/modules/... with the ones in the snapshot to
make sure that they were copied correctly during installation.
Comment 14 Koby 2006-02-03 16:43:46 UTC
The log file and the verbose output are both pointing to the correct place. I
didn't know the best way to verify the drivers, but they are the same size as
those found in the package. LIBGL_DRIVERS_PATH is not set in the environment,
and under the Files section of the xorg.conf are only paths to fonts.

One thing that might be the cause though, is my install of X. I started from the
upgraded FC4 install, and just installed the xserver package and the i915 driver
package per the wiki instructions. I poked around a bit, but those are the only
two binary snapshots that I saw on that link. Do I need to install anything else?

Thanks!

(In reply to comment #13)
> Check your Xorg.0.log file to find out which i810_drv.so it is loading. It
> should load the one from /usr/X11R6/lib/modules/drivers/. Also run
> LIBGL_DEBUG=verbose glxinfo. It should tell you, which i915_dri.so it is
> loading. It should load the one from /usr/X11R6/lib/modules/dri/. If any of
> these don't match, try to find out why. Check the Files section in your
> xorg.conf and make sure that the environment variable LIBGL_DRIVERS_PATH isn't
> pointing to some strange location. Also the driver binary i810_drv.so and
> i915_dri.so files in /usr/X11R6/lib/modules/... with the ones in the snapshot to
> make sure that they were copied correctly during installation.

Comment 15 Felix Kühling 2006-02-04 05:40:33 UTC
> One thing that might be the cause though, is my install of X. I started from the
> upgraded FC4 install, and just installed the xserver package and the i915 driver
> package per the wiki instructions. I poked around a bit, but those are the only
> two binary snapshots that I saw on that link. Do I need to install anything else?

Have you installed the "common" snapshot?
Comment 16 Koby 2006-02-04 08:42:59 UTC
Right - yes I did. So Common, Xserver package and DRI snapshot are the ones
installed.
Comment 17 Felix Kühling 2006-02-04 08:53:51 UTC
Could you attach an updated Xorg.0.log?
Comment 18 Koby 2006-02-04 09:07:33 UTC
Created attachment 4550 [details]
Response to comment 17
Comment 19 Felix Kühling 2006-02-09 11:19:24 UTC
As it turns out this problem is caused by the snapshot builds using outdated
Xorg 6.9 sources that are incompatible with the current i915 driver from Mesa.
i915 snapshots 20060123 and older should still be OK.

Alan Hourihane updated a version check in the Mesa driver so that it will report
a more useful error message. Closing this as FIXED.

There is still a bug in the snapshot build. It should use the modular Xorg. But
that's a different issue.


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.