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 d81da8911e02db939210bad88a61ce99dff74b0d..fefab11cccde0b4d653ed6f5b05deb648f1a6bdc 100644 (file)
@@ -25,6 +25,11 @@ struct winsys_handle
     * to select handle for kms, flink, or prime.
     */
    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.