aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include
diff options
context:
space:
mode:
authorJakob Borncrantz <[email protected]>2010-05-21 23:25:45 +0100
committerJakob Bornecrantz <[email protected]>2010-05-21 23:29:05 +0100
commit4db0c760195c67f1bc114fdfb8464791030a526c (patch)
tree7150261c8b1e9c2e80d8647a7abbf87c151c96cc /src/gallium/include
parentffd2bc3dfbcccd3c38ff93ac107027a5a5764eb5 (diff)
st_api: Give get_egl_image arguments directly to the function
Diffstat (limited to 'src/gallium/include')
-rw-r--r--src/gallium/include/state_tracker/st_api.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/gallium/include/state_tracker/st_api.h b/src/gallium/include/state_tracker/st_api.h
index e7efbf065f0..621bdae5c85 100644
--- a/src/gallium/include/state_tracker/st_api.h
+++ b/src/gallium/include/state_tracker/st_api.h
@@ -146,10 +146,6 @@ struct st_context_resource
*/
struct st_egl_image
{
- /* these fields are filled by the caller */
- struct st_context_iface *stctxi;
- void *egl_image;
-
/* this is owned by the caller */
struct pipe_resource *texture;
@@ -329,10 +325,22 @@ struct st_manager
/**
* Look up and return the info of an EGLImage.
*
+ * This is used to implement for example EGLImageTargetTexture2DOES.
+ * The GLeglImageOES agrument of that call is passed directly to this
+ * function call and the information needed to access this is returned
+ * in the given struct out.
+ *
+ * @smapi: manager owning the caller context
+ * @stctx: caller context
+ * @egl_image: EGLImage that caller recived
+ * @out: return struct filled out with access information.
+ *
* This function is optional.
*/
boolean (*get_egl_image)(struct st_manager *smapi,
- struct st_egl_image *stimg);
+ struct st_context_iface *stctx,
+ void *egl_image,
+ struct st_egl_image *out);
/**
* Query an manager param.