summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915simple/i915_winsys.h
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2009-02-24 23:22:34 +0100
committerJakob Bornecrantz <[email protected]>2009-02-25 02:00:29 +0100
commit36348ff1da9064ac93802dc4e10cef74de0a1f47 (patch)
treef6a0f06412649a94b6820b6b8828f74b9e780f3c /src/gallium/drivers/i915simple/i915_winsys.h
parent25b32eb8d00e303958497df9211ec2c45268b6af (diff)
i915: Enable winsys to get buffer from texture
Diffstat (limited to 'src/gallium/drivers/i915simple/i915_winsys.h')
-rw-r--r--src/gallium/drivers/i915simple/i915_winsys.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915simple/i915_winsys.h b/src/gallium/drivers/i915simple/i915_winsys.h
index 39f3f5a8497..ff5b34f193a 100644
--- a/src/gallium/drivers/i915simple/i915_winsys.h
+++ b/src/gallium/drivers/i915simple/i915_winsys.h
@@ -56,6 +56,7 @@ extern "C" {
*/
struct i915_batchbuffer;
+struct pipe_texture;
struct pipe_buffer;
struct pipe_fence_handle;
struct pipe_winsys;
@@ -123,6 +124,18 @@ struct pipe_context *i915_create_context( struct pipe_screen *screen,
struct pipe_winsys *winsys,
struct i915_winsys *i915 );
+/**
+ * Used for the winsys to get the buffer used for a texture
+ * and also the stride used for the texture.
+ *
+ * Buffer is referenced for you so you need to unref after use.
+ *
+ * This is needed for example kms.
+ */
+boolean i915_get_texture_buffer( struct pipe_texture *texture,
+ struct pipe_buffer **buf,
+ unsigned *stride );
+
#ifdef __cplusplus
}
#endif