vdpau: allow building vdpau st with virgl only

Fixes: 6b5aecb195 ("virgl: add support for hardware video acceleration")

Signed-off-by: Jan Palus <jpalus@fastmail.com>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20108>
This commit is contained in:
Jan Palus 2022-12-01 18:32:53 +01:00 committed by Marge Bot
parent 9e9b8dc7f8
commit 8560ce28c2

View File

@ -679,9 +679,10 @@ elif not [
with_gallium_r300,
with_gallium_r600,
with_gallium_radeonsi,
with_gallium_virgl,
].contains(true)
if _vdpau == 'enabled'
error('VDPAU state tracker requires at least one of the following gallium drivers: r300, r600, radeonsi, nouveau, d3d12 (with option gallium-d3d12-video).')
error('VDPAU state tracker requires at least one of the following gallium drivers: r300, r600, radeonsi, nouveau, d3d12 (with option gallium-d3d12-video, virgl).')
else
_vdpau = 'disabled'
endif