(In reply to comment #14)
> The question is, when libGL.so is compiled with direct rendering support, how
> to decide if direct rendering is viable at runtime? The connection to xserver
> may be remote or local. The configs from xserver and dri driver may or may not
> match. How do they affect the decision?
>
I don't think there is a simple way to decide. One way to answer this is to change glxext.c from:
if (glx_direct)
dpyPriv->driswDisplay = driswCreateDisplay(dpy);
to:
if (glx_direct && !glx_accel)
dpyPriv->driswDisplay = driswCreateDisplay(dpy);
and see if people complain :-(
It will mainly affect developers who usually explicitly set LIBGL_ALWAYS_SOFTWARE. Also wiki's won't have to be updated because they usually instruct people to set the envvar.
(In reply to comment #14)
> The question is, when libGL.so is compiled with direct rendering support, how
> to decide if direct rendering is viable at runtime? The connection to xserver
> may be remote or local. The configs from xserver and dri driver may or may not
> match. How do they affect the decision?
>
I don't think there is a simple way to decide. One way to answer this is to change glxext.c from:
if (glx_direct) >driswDisplay = driswCreateDisp lay(dpy) ;
dpyPriv-
to:
if (glx_direct && !glx_accel) >driswDisplay = driswCreateDisp lay(dpy) ;
dpyPriv-
and see if people complain :-(
It will mainly affect developers who usually explicitly set LIBGL_ALWAYS_ SOFTWARE. Also wiki's won't have to be updated because they usually instruct people to set the envvar.