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:
parent
ac37885fc8
commit
4f4745ebf3
4 changed files with 3 additions and 5 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue