diff options
author | Chia-I Wu <[email protected]> | 2010-12-22 12:14:44 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-12-22 13:22:36 +0800 |
commit | af767ee1133058bb24e2183e8bf2846424c96ee0 (patch) | |
tree | a97e759d4f7734d6e2a3ce345ca94df0cd5027bd /src/gallium/state_trackers/egl/common | |
parent | 2dd189a824d4c5c5157aaf381d5e424317a8d1e4 (diff) |
st/egl: Make config optional for create_pixmap_surface.
eglCopyBuffers or EGL_KHR_image_pixmap require creating a pixmap surface
without a config. Make it just work without relying on
is_pixmap_supported.
Diffstat (limited to 'src/gallium/state_trackers/egl/common')
-rw-r--r-- | src/gallium/state_trackers/egl/common/native.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/egl/common/native.h b/src/gallium/state_trackers/egl/common/native.h index 3886ca20562..a66e81def6f 100644 --- a/src/gallium/state_trackers/egl/common/native.h +++ b/src/gallium/state_trackers/egl/common/native.h @@ -185,7 +185,9 @@ struct native_display { const struct native_config *nconf); /** - * Create a pixmap surface. Required unless no config has pixmap_bit set. + * Create a pixmap surface. The native config may be NULL. In that case, a + * "best config" will be picked. Required unless no config has pixmap_bit + * set. */ struct native_surface *(*create_pixmap_surface)(struct native_display *ndpy, EGLNativePixmapType pix, |