gallium/winsys/drm: add layer to struct winsys_handle
authorChristian König <christian.koenig@amd.com>
Thu, 14 Jan 2016 12:51:18 +0000 (13:51 +0100)
committerChristian König <christian.koenig@amd.com>
Thu, 17 Mar 2016 13:16:59 +0000 (14:16 +0100)
For exporting a specific layer of an array texture.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/include/state_tracker/drm_driver.h

index d81da89..fefab11 100644 (file)
@@ -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.
     */