[Mesa-dev] [PATCH 02/10] gallium/winsys/drm: add layer to struct winsys_handle

Christian König deathsimple at vodafone.de
Tue Mar 8 12:21:43 UTC 2016


From: Christian König <christian.koenig at amd.com>

For exporting a specific layer of an array texture.

Signed-off-by: Christian König <christian.koenig at amd.com>
---
 src/gallium/include/state_tracker/drm_driver.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/gallium/include/state_tracker/drm_driver.h b/src/gallium/include/state_tracker/drm_driver.h
index d81da89..fefab11 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.
     */
-- 
2.5.0



More information about the mesa-dev mailing list