int ret;
/* Not supported yet */
- if (disp->Options.UseFallback)
+ if (disp->Options.ForceSoftware)
return EGL_FALSE;
loader_set_logger(_eglLog);
const char *err;
/* Not supported yet */
- if (disp->Options.UseFallback)
+ if (disp->Options.ForceSoftware)
return EGL_FALSE;
loader_set_logger(_eglLog);
dri2_dpy->fd = -1;
disp->DriverData = (void *) dri2_dpy;
- if (!disp->Options.UseFallback) {
+ if (!disp->Options.ForceSoftware) {
driver_loaded = surfaceless_probe_device(disp, false);
if (!driver_loaded)
_eglLog(_EGL_WARNING,
{
EGLBoolean initialized = EGL_FALSE;
- if (!disp->Options.UseFallback)
+ if (!disp->Options.ForceSoftware)
initialized = dri2_initialize_wayland_drm(drv, disp);
if (!initialized)
{
EGLBoolean initialized = EGL_FALSE;
- if (!disp->Options.UseFallback) {
+ if (!disp->Options.ForceSoftware) {
#ifdef HAVE_DRI3
if (!env_var_as_boolean("LIBGL_DRI3_DISABLE", false))
initialized = dri2_initialize_x11_dri3(drv, disp);
/* options that affect how the driver initializes the display */
struct {
- EGLBoolean UseFallback; /**< Use fallback driver (sw or less features) */
+ EGLBoolean ForceSoftware; /**< Use software path only */
void *Platform; /**< Platform-specific options */
} Options;
assert(!dpy->Initialized);
/* set options */
- dpy->Options.UseFallback =
+ dpy->Options.ForceSoftware =
env_var_as_boolean("LIBGL_ALWAYS_SOFTWARE", false);
best_drv = _eglMatchAndInitialize(dpy);
if (!best_drv) {
- dpy->Options.UseFallback = EGL_TRUE;
+ dpy->Options.ForceSoftware = EGL_TRUE;
best_drv = _eglMatchAndInitialize(dpy);
}