mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 05:10:11 +01:00
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)
|
dependencies: dep_va_headers)
|
||||||
pre_args += '-DHAVE_VA_SURFACE_ATTRIB_DRM_FORMAT_MODIFIERS'
|
pre_args += '-DHAVE_VA_SURFACE_ATTRIB_DRM_FORMAT_MODIFIERS'
|
||||||
endif
|
endif
|
||||||
|
libva_version = cc.get_define('VA_VERSION', prefix: '#include "va/va_version.h"',
|
||||||
|
dependencies: dep_va_headers).split('.')
|
||||||
endif
|
endif
|
||||||
with_gallium_va = dep_va.found()
|
with_gallium_va = dep_va.found()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,6 @@
|
||||||
# Copyright © 2017-2019 Intel Corporation
|
# Copyright © 2017-2019 Intel Corporation
|
||||||
# SPDX-License-Identifier: MIT
|
# SPDX-License-Identifier: MIT
|
||||||
|
|
||||||
libva_version = dep_va.version().split('.')
|
|
||||||
|
|
||||||
libva_st = static_library(
|
libva_st = static_library(
|
||||||
'va_st',
|
'va_st',
|
||||||
files(
|
files(
|
||||||
|
|
|
||||||
|
|
@ -34,10 +34,9 @@ devenv.set('LIBVA_DRIVERS_PATH', meson.current_build_dir())
|
||||||
if host_machine.system() == 'windows'
|
if host_machine.system() == 'windows'
|
||||||
link_with_libva_gallium += [libwsgdi]
|
link_with_libva_gallium += [libwsgdi]
|
||||||
|
|
||||||
libva_init_version = dep_va.version().split('.')
|
|
||||||
vaon12_def_input = configure_file(
|
vaon12_def_input = configure_file(
|
||||||
configuration: {
|
configuration: {
|
||||||
'__vaDriverInit_X_Y': '__vaDriverInit_@0@_@1@'.format(libva_init_version[0], libva_init_version[1]) + '@4'
|
'__vaDriverInit_X_Y': '__vaDriverInit_@0@_@1@'.format(libva_version[0], libva_version[1]) + '@4'
|
||||||
},
|
},
|
||||||
input: 'vaon12.def.in',
|
input: 'vaon12.def.in',
|
||||||
output: 'vaon12.def.in',
|
output: 'vaon12.def.in',
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ directory = libva-2.22.0
|
||||||
source_url = https://github.com/intel/libva/archive/refs/tags/2.22.0.tar.gz
|
source_url = https://github.com/intel/libva/archive/refs/tags/2.22.0.tar.gz
|
||||||
source_filename = 2.22.0.tar.gz
|
source_filename = 2.22.0.tar.gz
|
||||||
source_hash = 467c418c2640a178c6baad5be2e00d569842123763b80507721ab87eb7af8735
|
source_hash = 467c418c2640a178c6baad5be2e00d569842123763b80507721ab87eb7af8735
|
||||||
wrapdb_version = 2.22.0-1
|
|
||||||
|
|
||||||
[provide]
|
[provide]
|
||||||
libva = libva_dep
|
libva = libva_dep
|
||||||
Loading…
Add table
Reference in a new issue