egl: rename LIBGL_ALWAYS_SOFTWARE variable from UseFallback to ForceSoftware
authorEric Engestrom <eric.engestrom@imgtec.com>
Wed, 20 Dec 2017 15:53:09 +0000 (15:53 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 27 Dec 2017 22:31:50 +0000 (22:31 +0000)
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_android.c
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_surfaceless.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c
src/egl/main/egldisplay.h
src/egl/main/egldriver.c

index 1b3092b7b3bf43324c9e354bb6f664712fe24bf6..34e3ef66bfeb91f9c2fa3f920ba51ddd1fbdf369 100644 (file)
@@ -1180,7 +1180,7 @@ dri2_initialize_android(_EGLDriver *drv, _EGLDisplay *dpy)
    int ret;
 
    /* Not supported yet */
-   if (disp->Options.UseFallback)
+   if (disp->Options.ForceSoftware)
       return EGL_FALSE;
 
    loader_set_logger(_eglLog);
index a2d18ef508938c7ec355b2c2e7b00113ebe8ec59..6e7403d9ab27ba938ece47908693f1bd99035754 100644 (file)
@@ -653,7 +653,7 @@ dri2_initialize_drm(_EGLDriver *drv, _EGLDisplay *disp)
    const char *err;
 
    /* Not supported yet */
-   if (disp->Options.UseFallback)
+   if (disp->Options.ForceSoftware)
       return EGL_FALSE;
 
    loader_set_logger(_eglLog);
index 977b046016665aa9914853d2ab8d1cc8b9427d85..70b302c0ce42f8ec8a5a6961bf3e267d009e4e55 100644 (file)
@@ -324,7 +324,7 @@ dri2_initialize_surfaceless(_EGLDriver *drv, _EGLDisplay *disp)
    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,
index 02b32f988858303a5013c458e2996c5f585ee470..05a347abfcec87bfe8736dc0a18aa531c573c36a 100644 (file)
@@ -1999,7 +1999,7 @@ dri2_initialize_wayland(_EGLDriver *drv, _EGLDisplay *disp)
 {
    EGLBoolean initialized = EGL_FALSE;
 
-   if (!disp->Options.UseFallback)
+   if (!disp->Options.ForceSoftware)
       initialized = dri2_initialize_wayland_drm(drv, disp);
 
    if (!initialized)
index 8ede590bfab383cff9653d701234ef68a1bde491..78a51ba0e53e8fe8b22975cf58ec52c9279bfde0 100644 (file)
@@ -1459,7 +1459,7 @@ dri2_initialize_x11(_EGLDriver *drv, _EGLDisplay *disp)
 {
    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);
index 0005c81836d45c917326591b3b097b4e55f40867..addf430ffed59937f147428033142356b5bf887b 100644 (file)
@@ -160,7 +160,7 @@ struct _egl_display
 
    /* 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;
 
index 34a90ae5dc56c4543b4cd09f6b7755439977f769..ee3dc86e388512c291b0ccce27483fb71e66740c 100644 (file)
@@ -84,12 +84,12 @@ _eglMatchDriver(_EGLDisplay *dpy)
    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);
    }