frontends/va: get libva api version from va_version.h
Signed-off-by: Thong Thai <thong.thai@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Reviewed-by: David Rosca <david.rosca@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38773>
This commit is contained in:
@@ -708,6 +708,8 @@ if dep_va.found()
|
||||
dependencies: dep_va_headers)
|
||||
pre_args += '-DHAVE_VA_SURFACE_ATTRIB_DRM_FORMAT_MODIFIERS'
|
||||
endif
|
||||
libva_version = cc.get_define('VA_VERSION', prefix: '#include "va/va_version.h"',
|
||||
dependencies: dep_va_headers).split('.')
|
||||
endif
|
||||
with_gallium_va = dep_va.found()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user