From f1e78a48f2ec2645eb87d134c6961815dc89a307 Mon Sep 17 00:00:00 2001 From: Christian König Date: Thu, 14 Jan 2016 13:51:18 +0100 Subject: gallium/winsys/drm: add layer to struct winsys_handle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For exporting a specific layer of an array texture. Signed-off-by: Christian König Reviewed-by: Marek Olšák --- src/gallium/include/state_tracker/drm_driver.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium') 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 @@ -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. -- cgit v1.2.3