From bfd8c12406593e778c01fffa83fa8831f3d398f2 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 28 Apr 2022 16:34:27 -0400 Subject: [PATCH] winsys: add more stride members to winsys_handle Reviewed-by: Dave Airlie Part-of: --- src/gallium/include/frontend/winsys_handle.h | 21 ++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/src/gallium/include/frontend/winsys_handle.h b/src/gallium/include/frontend/winsys_handle.h index 6281eb8e0c4..289cb9d08ed 100644 --- a/src/gallium/include/frontend/winsys_handle.h +++ b/src/gallium/include/frontend/winsys_handle.h @@ -52,13 +52,26 @@ struct winsys_handle unsigned handle; #endif /** - * Input to resource_from_handle. - * Output for resource_get_handle. + * Row stride + * Input to texture_from_handle. + * Output for texture_from_handle. */ unsigned stride; /** - * Input to resource_from_handle. - * Output for resource_get_handle. + * Array layer stride + * Input to texture_from_handle. + * Output for texture_from_handle. + */ + unsigned array_stride; + /** + * 3D slice stride + * Input to texture_from_handle. + * Output for texture_from_handle. + */ + unsigned image_stride; + /** + * Input to texture_from_handle. + * Output for texture_from_handle. */ unsigned offset;