Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65348 - libGL (DRI for Creator graphics) sometimes fails with xorg-x11-6.8.0-r1
Summary: libGL (DRI for Creator graphics) sometimes fails with xorg-x11-6.8.0-r1
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: Sparc All
: Low minor (vote)
Assignee: Ferris McCormick (RETIRED)
URL:
Whiteboard:
Keywords: Tracker
Depends on:
Blocks:
 
Reported: 2004-09-25 13:39 UTC by Ferris McCormick (RETIRED)
Modified: 2005-04-20 05:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ferris McCormick (RETIRED) gentoo-dev 2004-09-25 13:39:15 UTC
New with xorg-x11-6.8.0-r1, the direct rendering module ffb_dri.so for use with
libGL (mesa) and Sun Creator graphics cards actually loads and runs.

However, it is incomplete at this point.  This means that some applications can use it
with no problems (and run much faster as a result), but others do not run correctly.
(Example:  glxgears runs very fast, but is black-on-black so doesn't show anything.
The Mesa 'stars' demo runs fine and is much faster.)

On sparc, it is always built, and if in your xorc.conf file, you load dri and glx,
it is used for libGL applications.  Quick check:  glxinfo starts out like this:
================ferris@terciopelo:PROJECTS/SIMULATION/ALL-IN-ONE [246]% glxinfo|more
name of display: :0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_ARB_multisample, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_EXT_import_context, GLX_OML_swap_method, GLX_SGI_make_current_read, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig
client glx vendor string: SGI
client glx version string: 1.4
===================
(The key being that 'direct rendering: Yes')

If your application happens to fail, you can disable direct rendering for ffb
with the LIBGL_ALWAYS_INDIRECT environment variable; e.g.,
==================================
fmccor@terciopelo ferris $ LIBGL_ALWAYS_INDIRECT='yes' glxinfo
name of display: terciopelo:0.0
display: terciopelo:0  screen: 0
direct rendering: No
==================================

If you set this in your environment, libGL behaves the same way as it did with
xorg-x11-6.7.0.

This is a known problem addressing current limitations in a work in progress.
If you run into the problem, please report it on this bug and try to show what fails for you.
We need that information to work on making this feature more robust.

(By the way, if you are kernel-2.6.7, this does not apply.  You can't get at drm
for ffb at all, and that is a kernel problem/feature.)
Comment 1 Ferris McCormick (RETIRED) gentoo-dev 2005-04-20 05:50:05 UTC
With current versions of xorg-x11 and with kernel 2.6.x (x > 6) DRI is not available on Creator (neither in the kernel nor in the xorg-x11 sunffb driver).  Hence it makes no sense to play with ffb_dri.so because it can't be used anyway, and nothing further can be done here.