Mesa (main): gallium: update winsys_handle documentation

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 8 08:12:05 UTC 2022


Module: Mesa
Branch: main
Commit: baf0e66dae1ce7d92604a8b3c188fa4082003d17
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=baf0e66dae1ce7d92604a8b3c188fa4082003d17

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Wed Jun  1 10:45:01 2022 +0200

gallium: update winsys_handle documentation

The function names are resource_***_handle, not textures_***_handles.

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16813>

---

 src/gallium/include/frontend/winsys_handle.h | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/gallium/include/frontend/winsys_handle.h b/src/gallium/include/frontend/winsys_handle.h
index 5f0be627fcc..30cec27a561 100644
--- a/src/gallium/include/frontend/winsys_handle.h
+++ b/src/gallium/include/frontend/winsys_handle.h
@@ -19,30 +19,30 @@ extern "C" {
 #define WINSYS_HANDLE_TYPE_D3D12_RES 4
 
 /**
- * For use with pipe_screen::{texture_from_handle|texture_get_handle}.
+ * For use with pipe_screen::{resource_from_handle|resource_get_handle}.
  */
 struct winsys_handle
 {
    /**
-    * Input for texture_from_handle, valid values are
+    * Input for resource_from_handle, valid values are
     * WINSYS_HANDLE_TYPE_SHARED or WINSYS_HANDLE_TYPE_FD.
-    * Input to texture_get_handle,
+    * Input to resource_get_handle,
     * to select handle for kms, flink, or prime.
     */
    unsigned type;
    /**
-    * Input for texture_get_handle, allows to export the offset
+    * Input for resource_get_handle, allows to export the offset
     * of a specific layer of an array texture.
     */
    unsigned layer;
    /**
-    * Input for texture_get_handle, allows to export of a specific plane of a
+    * Input for resource_get_handle, allows to export of a specific plane of a
     * texture.
     */
    unsigned plane;
    /**
-    * Input to texture_from_handle.
-    * Output for texture_get_handle.
+    * Input to resource_from_handle.
+    * Output for resource_get_handle.
     */
 #ifdef _WIN32
    HANDLE handle;
@@ -50,13 +50,13 @@ struct winsys_handle
    unsigned handle;
 #endif
    /**
-    * Input to texture_from_handle.
-    * Output for texture_get_handle.
+    * Input to resource_from_handle.
+    * Output for resource_get_handle.
     */
    unsigned stride;
    /**
-    * Input to texture_from_handle.
-    * Output for texture_get_handle.
+    * Input to resource_from_handle.
+    * Output for resource_get_handle.
     */
    unsigned offset;
 



More information about the mesa-commit mailing list