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

Author: David Rosca <[email protected]>
Date:   Sun Jul 30 12:55:16 2023 +0200

radeonsi: Enable PIPE_VIDEO_CAP_SUPPORTS_CONTIGUOUS_PLANES_MAP

This is needed for vaDeriveImage to map multi-plane surfaces.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7947

Reviewed-by: Marek Olšák <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24389>

---

 src/gallium/drivers/radeonsi/si_get.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/radeonsi/si_get.c 
b/src/gallium/drivers/radeonsi/si_get.c
index 7bda1ad7e1c..676ca9a1756 100644
--- a/src/gallium/drivers/radeonsi/si_get.c
+++ b/src/gallium/drivers/radeonsi/si_get.c
@@ -902,6 +902,8 @@ static int si_get_video_param(struct pipe_screen *screen, 
enum pipe_video_profil
             return 0;
          }
       }
+   case PIPE_VIDEO_CAP_SUPPORTS_CONTIGUOUS_PLANES_MAP:
+      return true;
    default:
       return 0;
    }

Reply via email to