summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915/i915_winsys.h
diff options
context:
space:
mode:
authorDaniel Vetter <[email protected]>2010-11-21 20:25:33 +0100
committerJakob Bornecrantz <[email protected]>2010-12-02 01:34:13 +0100
commit2ff0879a6365e7f7d7e5277274bc965ad57a82b4 (patch)
treeb702ac199b53ea193b3a6e4fa249ed8b5d7ce118 /src/gallium/drivers/i915/i915_winsys.h
parent135b083461f8a5a220d86f57af018f6f0316d2bb (diff)
i915g: return tiling in iws->buffer_from_handle
This is needed to properly implement tiling flags. And the gem implemention fo buffer_from_handle already calls get_tiling, so it's for free. Signed-off-by: Daniel Vetter <[email protected]> Reviewed-by: Jakob Bornecrantz <[email protected]> Signed-off-by: Jakob Bornecrantz <[email protected]>
Diffstat (limited to 'src/gallium/drivers/i915/i915_winsys.h')
-rw-r--r--src/gallium/drivers/i915/i915_winsys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_winsys.h b/src/gallium/drivers/i915/i915_winsys.h
index ddf8a906348..24ea416f015 100644
--- a/src/gallium/drivers/i915/i915_winsys.h
+++ b/src/gallium/drivers/i915/i915_winsys.h
@@ -53,6 +53,7 @@ enum i915_winsys_buffer_type
I915_NEW_VERTEX
};
+/* These need to be in sync with the definitions of libdrm-intel! */
enum i915_winsys_buffer_tile
{
I915_TILE_NONE,
@@ -156,6 +157,7 @@ struct i915_winsys {
struct i915_winsys_buffer *
(*buffer_from_handle)(struct i915_winsys *iws,
struct winsys_handle *whandle,
+ enum i915_winsys_buffer_tile *tiling,
unsigned *stride);
/**