summaryrefslogtreecommitdiff
path: root/src/gallium/targets/vdpau
diff options
context:
space:
mode:
authorFeng Jiang <jiangfeng@kylinos.cn>2022-06-20 15:10:58 +0800
committerMarge Bot <emma+marge@anholt.net>2022-08-11 10:21:03 +0000
commit6b5aecb19558200fd39fda46db08456ba7acc180 (patch)
tree91dd325cfabfc38372c3bfd37fcaecaa9132324c /src/gallium/targets/vdpau
parent15c210649d3547689be286af2a0707be7ec3cdf4 (diff)
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 <jiangfeng@kylinos.cn> Signed-off-by: Ming Xie <xieming@kylinos.cn> Signed-off-by: Liming Sun <sunliming@kylinos.cn> Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17157>
Diffstat (limited to 'src/gallium/targets/vdpau')
-rw-r--r--src/gallium/targets/vdpau/meson.build3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/targets/vdpau/meson.build b/src/gallium/targets/vdpau/meson.build
index 1e793ebf9c9..d51af5c2bde 100644
--- a/src/gallium/targets/vdpau/meson.build
+++ b/src/gallium/targets/vdpau/meson.build
@@ -56,7 +56,7 @@ libvdpau_gallium = shared_library(
link_with : link_with_libvdpau_gallium,
dependencies : [
idep_mesautil,
- driver_r300, driver_r600, driver_radeonsi, driver_nouveau, driver_d3d12,
+ driver_r300, driver_r600, driver_radeonsi, driver_nouveau, driver_d3d12, driver_virgl,
],
link_depends : vdpau_link_depends,
soversion : '@0@.@1@.0'.format(VDPAU_MAJOR, VDPAU_MINOR),
@@ -69,6 +69,7 @@ foreach d : [[with_gallium_r300, 'r300'],
[with_gallium_r600, 'r600'],
[with_gallium_radeonsi, 'radeonsi'],
[with_gallium_nouveau, 'nouveau'],
+ [with_gallium_virgl, 'virtio_gpu'],
[with_gallium_d3d12_video, 'd3d12']]
if d[0]
vdpau_drivers += 'libvdpau_@0@.so.@1@.@2@.0'.format(d[1], VDPAU_MAJOR, VDPAU_MINOR)