summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristian König <[email protected]>2016-01-14 13:51:18 +0100
committerChristian König <[email protected]>2016-03-17 14:16:59 +0100
commitf1e78a48f2ec2645eb87d134c6961815dc89a307 (patch)
treea6ddb30db50095c5cc8fbc87de911dfba2e95d5e /src/gallium
parent29d26f1522d7f7be8f7d7791e37c3fcd8ac4544a (diff)
gallium/winsys/drm: add layer to struct winsys_handle
For exporting a specific layer of an array texture. Signed-off-by: Christian König <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/include/state_tracker/drm_driver.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/include/state_tracker/drm_driver.h b/src/gallium/include/state_tracker/drm_driver.h
index d81da8911e0..fefab11cccd 100644
--- a/src/gallium/include/state_tracker/drm_driver.h
+++ b/src/gallium/include/state_tracker/drm_driver.h
@@ -26,6 +26,11 @@ struct winsys_handle
*/
unsigned type;
/**
+ * Input for texture_get_handle, allows to export the offset
+ * of a specific layer of an array texture.
+ */
+ unsigned layer;
+ /**
* Input to texture_from_handle.
* Output for texture_get_handle.
*/