Module: Mesa Branch: main Commit: 6b5aecb19558200fd39fda46db08456ba7acc180 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b5aecb19558200fd39fda46db08456ba7acc180
Author: Feng Jiang <[email protected]> Date: Mon Jun 20 15:10:58 2022 +0800 virgl: add support for hardware video acceleration Currently H.264 and H.265 decoding is supported, and other profiles and encodings will be added in the future. This function relies on the virglrenderer commit: a92fed821f5ac173ca82c011a5d7e5b25e7bd0eb Signed-off-by: Feng Jiang <[email protected]> Signed-off-by: Ming Xie <[email protected]> Signed-off-by: Liming Sun <[email protected]> Reviewed-by: Gert Wollny <[email protected]> Reviewed-by: Emil Velikov <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17157> --- src/gallium/drivers/virgl/meson.build | 1 + src/gallium/drivers/virgl/virgl_context.c | 16 + src/gallium/drivers/virgl/virgl_encode.c | 86 +++++ src/gallium/drivers/virgl/virgl_encode.h | 28 ++ src/gallium/drivers/virgl/virgl_screen.c | 80 +++++ src/gallium/drivers/virgl/virgl_screen.h | 1 + src/gallium/drivers/virgl/virgl_video.c | 567 ++++++++++++++++++++++++++++++ src/gallium/drivers/virgl/virgl_video.h | 347 ++++++++++++++++++ src/gallium/targets/va/meson.build | 3 +- src/gallium/targets/vdpau/meson.build | 3 +- src/virtio/virtio-gpu/virgl_hw.h | 22 ++ src/virtio/virtio-gpu/virgl_protocol.h | 60 ++++ 12 files changed, 1212 insertions(+), 2 deletions(-) Diff: http://cgit.freedesktop.org/mesa/mesa/diff/?id=6b5aecb19558200fd39fda46db08456ba7acc180
