gallium/pipe: Add get_resources() to pipe_video_buffer
authorGanesh Belgur Ramachandra <ganesh.belgurramachandra@amd.com>
Mon, 19 Jun 2023 14:50:59 +0000 (09:50 -0500)
committerMarge Bot <emma+marge@anholt.net>
Fri, 7 Jul 2023 15:10:14 +0000 (15:10 +0000)
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23159>

src/gallium/include/pipe/p_video_codec.h

index 1144616..6943029 100644 (file)
@@ -182,6 +182,12 @@ struct pipe_video_buffer
    void (*destroy)(struct pipe_video_buffer *buffer);
 
    /**
+    * get an individual resource for each plane,
+    * only returns existing resources by reference
+    */
+   void (*get_resources)(struct pipe_video_buffer *buffer, struct pipe_resource **resources);
+
+   /**
     * get an individual sampler view for each plane
     */
    struct pipe_sampler_view **(*get_sampler_view_planes)(struct pipe_video_buffer *buffer);