aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/egl_g3d/common/native.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-01-18 15:49:20 +0800
committerChia-I Wu <[email protected]>2010-01-18 17:04:02 +0800
commitf8244e294646c1b5127a2bf3e92811300b0e3b9e (patch)
tree3fe630ed870c28e2ad629902ef093f78a9f13aae /src/gallium/state_trackers/egl_g3d/common/native.h
parentfda897ad71738dd76a218280fd2e635d5dcdcee1 (diff)
st/egl_g3d: Add is_pixmap_supported to native display interface.
The function may be used to support, for example, EGL_MATCH_NATIVE_PIXMAP and EGL_KHR_image_pixmap.
Diffstat (limited to 'src/gallium/state_trackers/egl_g3d/common/native.h')
-rw-r--r--src/gallium/state_trackers/egl_g3d/common/native.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/egl_g3d/common/native.h b/src/gallium/state_trackers/egl_g3d/common/native.h
index 6cd161bdf6c..f374f2e4a68 100644
--- a/src/gallium/state_trackers/egl_g3d/common/native.h
+++ b/src/gallium/state_trackers/egl_g3d/common/native.h
@@ -136,6 +136,17 @@ struct native_display {
int *num_configs);
/**
+ * Test if a pixmap is supported by the given config. Required unless no
+ * config has GLX_PIXMAP_BIT set.
+ *
+ * This function is usually called to find a config that supports a given
+ * pixmap. Thus, it is usually called with the same pixmap in a row.
+ */
+ boolean (*is_pixmap_supported)(struct native_display *ndpy,
+ EGLNativePixmapType pix,
+ const struct native_config *nconf);
+
+ /**
* Create a pipe context.
*/
struct pipe_context *(*create_context)(struct native_display *ndpy,