frontends/va: Add windows VA frontend support via vl_winsys_win32 and libva-win32

Acked-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19063>
This commit is contained in:
Sil Vilerino
2022-09-07 13:42:04 -04:00
committed by Marge Bot
parent 05f0d27601
commit b557ceb75b
10 changed files with 268 additions and 61 deletions

View File

@@ -783,13 +783,7 @@ elif _va == 'false'
_va = 'disabled'
warning('gallium-va option "false" deprecated, please use "disabled" instead.')
endif
if not system_has_kms_drm
if _va == 'enabled'
error('VA state tracker can only be built on unix-like OSes.')
else
_va = 'disabled'
endif
elif not (with_gallium_r600 or with_gallium_radeonsi or with_gallium_nouveau or with_gallium_d3d12_video or with_gallium_virgl)
if not (with_gallium_r600 or with_gallium_radeonsi or with_gallium_nouveau or with_gallium_d3d12_video or with_gallium_virgl)
if _va == 'enabled'
error('VA state tracker requires at least one of the following gallium drivers: r600, radeonsi, nouveau, d3d12 (with option gallium-d3d12-video), virgl.')
else
@@ -799,7 +793,11 @@ endif
with_gallium_va = false
dep_va = null_dep
if _va != 'disabled'
dep_va = dependency('libva', version : '>= 1.8.0', required : _va == 'enabled')
_dep_va_name = 'libva'
if host_machine.system() == 'windows'
_dep_va_name = 'libva-win32'
endif
dep_va = dependency(_dep_va_name, version : '>= 1.8.0', required : _va == 'enabled')
if dep_va.found()
dep_va_headers = dep_va.partial_dependency(compile_args : true)
with_gallium_va = true