egl: Improve driver selection.
[mesa.git] / src / egl / drivers / dri2 / egl_dri2.c
index 2e827f4f3e50b5a97d12e1ab1c313e73c043aea4..6fc1e49e773e08b8ed117d0b19c1401b32ea9a8f 100644 (file)
@@ -1470,6 +1470,10 @@ dri2_initialize_drm(_EGLDriver *drv, _EGLDisplay *disp)
 static EGLBoolean
 dri2_initialize(_EGLDriver *drv, _EGLDisplay *disp)
 {
+   /* not until swrast_dri is supported */
+   if (disp->Options.UseFallback)
+      return EGL_FALSE;
+
    switch (disp->Platform) {
    case _EGL_PLATFORM_X11:
       if (disp->Options.TestOnly)