mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
egl: switch to egl_glx.so as the default EGL driver for X.
This commit is contained in:
parent
192f45606a
commit
cc6bdf49ca
1 changed files with 3 additions and 4 deletions
|
|
@ -44,7 +44,7 @@
|
||||||
#include "eglx.h"
|
#include "eglx.h"
|
||||||
|
|
||||||
|
|
||||||
static const char *DefaultDRIDriver = "egl_xdri";
|
static const char *DefaultGLXDriver = "egl_glx";
|
||||||
static const char *DefaultSoftDriver = "egl_softpipe";
|
static const char *DefaultSoftDriver = "egl_softpipe";
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -52,7 +52,7 @@ static const char *DefaultSoftDriver = "egl_softpipe";
|
||||||
* Given an X Display ptr (at dpy->Xdpy) try to determine the appropriate
|
* Given an X Display ptr (at dpy->Xdpy) try to determine the appropriate
|
||||||
* device driver. Return its name.
|
* device driver. Return its name.
|
||||||
*
|
*
|
||||||
* This boils down to whether to use the egl_xdri.so driver which will
|
* This boils down to whether to use the egl_glx.so driver which will
|
||||||
* load a DRI driver or the egl_softpipe.so driver that'll do software
|
* load a DRI driver or the egl_softpipe.so driver that'll do software
|
||||||
* rendering on Xlib.
|
* rendering on Xlib.
|
||||||
*/
|
*/
|
||||||
|
|
@ -82,9 +82,8 @@ _xeglChooseDriver(_EGLDisplay *dpy)
|
||||||
/* See if we can choose a DRI/DRM driver */
|
/* See if we can choose a DRI/DRM driver */
|
||||||
driverName = _eglChooseDRMDriver(screen);
|
driverName = _eglChooseDRMDriver(screen);
|
||||||
if (driverName) {
|
if (driverName) {
|
||||||
/* DRI is available */
|
|
||||||
free((void *) driverName);
|
free((void *) driverName);
|
||||||
driverName = _eglstrdup(DefaultDRIDriver);
|
driverName = _eglstrdup(DefaultGLXDriver);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
driverName = _eglstrdup(DefaultSoftDriver);
|
driverName = _eglstrdup(DefaultSoftDriver);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue