diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2010-02-09 16:06:23 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-02-09 21:24:14 -0500 |
commit | 360faf80ca763e195425ee7cadfee64002c8cd98 (patch) | |
tree | 0181acd7d90b1268c782d6c240ecb12adb95cb22 /src/egl/drivers/dri2 | |
parent | 77e6fb17d96ed9d9b3c2f52999e93da12a466405 (diff) |
egl_dri2: Allow pbuffer and pixmap surfaces for all configs
Diffstat (limited to 'src/egl/drivers/dri2')
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 04d698e81c..a1a89e9a17 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -217,20 +217,19 @@ dri2_add_config(_EGLDisplay *disp, const __DRIconfig *dri_config, int id) /* EGL_SWAP_BEHAVIOR_PRESERVED_BIT */ + /* FIXME: Figure out how to get the visual ID and types */ if (double_buffer) { - /* FIXME: Figure out how to get the visual ID and types */ - _eglSetConfigKey(&conf->base, EGL_SURFACE_TYPE, EGL_WINDOW_BIT); + _eglSetConfigKey(&conf->base, EGL_SURFACE_TYPE, + EGL_WINDOW_BIT | EGL_PIXMAP_BIT | EGL_PBUFFER_BIT); _eglSetConfigKey(&conf->base, EGL_NATIVE_VISUAL_ID, 0x21); _eglSetConfigKey(&conf->base, EGL_NATIVE_VISUAL_TYPE, XCB_VISUAL_CLASS_TRUE_COLOR); } else { - _eglSetConfigKey(&conf->base, - EGL_SURFACE_TYPE, EGL_PIXMAP_BIT | EGL_PBUFFER_BIT); - _eglSetConfigKey(&conf->base, - EGL_BIND_TO_TEXTURE_RGB, bind_to_texture_rgb); - _eglSetConfigKey(&conf->base, - EGL_BIND_TO_TEXTURE_RGBA, bind_to_texture_rgba); + _eglSetConfigKey(&conf->base, EGL_SURFACE_TYPE, + EGL_PIXMAP_BIT | EGL_PBUFFER_BIT); } + _eglSetConfigKey(&conf->base, EGL_BIND_TO_TEXTURE_RGB, bind_to_texture_rgb); + _eglSetConfigKey(&conf->base, EGL_BIND_TO_TEXTURE_RGBA, bind_to_texture_rgba); /* EGL_OPENGL_ES_BIT, EGL_OPENVG_BIT, EGL_OPENGL_ES2_BIT */ _eglSetConfigKey(&conf->base, EGL_RENDERABLE_TYPE, EGL_OPENGL_BIT); |