mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 06:10:12 +01:00
egl: use softpipe_egl driver by default
This commit is contained in:
parent
31e70fa275
commit
d1a0faffc3
1 changed files with 14 additions and 2 deletions
|
|
@ -12,6 +12,8 @@
|
|||
#include "eglx.h"
|
||||
|
||||
|
||||
static const char *DefaultXDriver = "softpipe_egl";
|
||||
|
||||
|
||||
/**
|
||||
* Given an X Display ptr (at dpy->Xdpy) try to determine the appropriate
|
||||
|
|
@ -21,14 +23,24 @@ const char *
|
|||
_xeglChooseDriver(_EGLDisplay *dpy)
|
||||
{
|
||||
#ifdef _EGL_PLATFORM_X
|
||||
_XPrivDisplay xdpy = (_XPrivDisplay) dpy->Xdpy;
|
||||
_XPrivDisplay xdpy;
|
||||
|
||||
assert(dpy);
|
||||
|
||||
if (!dpy->Xdpy) {
|
||||
dpy->Xdpy = XOpenDisplay(NULL);
|
||||
if (!dpy->Xdpy) {
|
||||
/* can't open X display -> can't use X-based driver */
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
xdpy = (_XPrivDisplay) dpy->Xdpy;
|
||||
|
||||
assert(dpy->Xdpy);
|
||||
|
||||
printf("%s\n", xdpy->display_name);
|
||||
|
||||
return "foo"; /* XXX todo */
|
||||
return DefaultXDriver; /* XXX temporary */
|
||||
#else
|
||||
return NULL;
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue