diff options
author | Chia-I Wu <[email protected]> | 2010-09-30 16:53:33 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-09-30 17:04:56 +0800 |
commit | d63b2622f1c47d6f82fe96c9f1b749d908883a23 (patch) | |
tree | 8f299c589ad29433c7b598dd4fb17b7e14f725ec /src/gallium/state_trackers/egl/common | |
parent | 6b2f1561ad66c358a5d6b7a5ed5eb8f550a3b098 (diff) |
st/egl: Skip single-buffered configs in EGL.
Let DRI2 report single-buffered configs and skip them in EGL. This is
based on the patch by Luca Barbieri.
Diffstat (limited to 'src/gallium/state_trackers/egl/common')
-rw-r--r-- | src/gallium/state_trackers/egl/common/egl_g3d.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/egl/common/egl_g3d.c b/src/gallium/state_trackers/egl/common/egl_g3d.c index ce2b1f7bb94..bfbb431058b 100644 --- a/src/gallium/state_trackers/egl/common/egl_g3d.c +++ b/src/gallium/state_trackers/egl/common/egl_g3d.c @@ -258,6 +258,10 @@ egl_g3d_init_config(_EGLDriver *drv, _EGLDisplay *dpy, EGLint buffer_mask, api_mask; EGLBoolean valid; + /* skip single-buffered configs */ + if (!(nconf->buffer_mask & (1 << NATIVE_ATTACHMENT_BACK_LEFT))) + return EGL_FALSE; + buffer_mask = 0x0; if (nconf->buffer_mask & (1 << NATIVE_ATTACHMENT_FRONT_LEFT)) buffer_mask |= ST_ATTACHMENT_FRONT_LEFT_MASK; |