diff options
author | Chia-I Wu <[email protected]> | 2011-06-08 16:33:56 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2011-06-13 12:19:39 +0800 |
commit | 77e031a1c423affde99934f0fd059d49852e2729 (patch) | |
tree | c34e1a1e4bd094fb497582b27e28ad02e221f595 /src/egl/drivers/dri2 | |
parent | cf69eeacc6931e833e7894a379af4fae085881e9 (diff) |
egl_dri2: try swrastg_dri if swrast_dri fails
Per libGL.
Diffstat (limited to 'src/egl/drivers/dri2')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index a38bff5711d..d430145d09c 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -416,6 +416,12 @@ dri2_load_driver_swrast(_EGLDisplay *disp) dri2_dpy->driver_name = "swrast"; extensions = dri2_open_driver(disp); + if (!extensions) { + /* try again with swrastg */ + dri2_dpy->driver_name = "swrastg"; + extensions = dri2_open_driver(disp); + } + if (!extensions) return EGL_FALSE; |