summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia
diff options
context:
space:
mode:
authorYew, Chang Ching <chang.ching.yew@intel.com>2021-05-25 06:47:15 (GMT)
committerAnuj Mittal <anuj.mittal@intel.com>2021-05-25 14:56:24 (GMT)
commitfdcc64ca2ee8d81a65d6eca770677f0d1f8ec06f (patch)
treefa249570b8a27c8b6d78546a5f4c3213057b906f /recipes-multimedia
parent25798b2cc899b1ac461f2044da59afcab48aa4b2 (diff)
downloadmeta-intel-fdcc64ca2ee8d81a65d6eca770677f0d1f8ec06f.tar.gz
onevpl: Add X11 support to legacy tools
Signed-off-by: Teng, Jin Chung <jin.chung.teng@intel.com> Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-multimedia')
-rw-r--r--recipes-multimedia/onevpl/onevpl/0001-Add-X11-support-to-legacy-tools.patch50
-rw-r--r--recipes-multimedia/onevpl/onevpl_2021.2.2.bb1
2 files changed, 51 insertions, 0 deletions
diff --git a/recipes-multimedia/onevpl/onevpl/0001-Add-X11-support-to-legacy-tools.patch b/recipes-multimedia/onevpl/onevpl/0001-Add-X11-support-to-legacy-tools.patch
new file mode 100644
index 0000000..fd7faa8
--- /dev/null
+++ b/recipes-multimedia/onevpl/onevpl/0001-Add-X11-support-to-legacy-tools.patch
@@ -0,0 +1,50 @@
1From 3c485ba902da0a4a2e9fc43b34eb9174c739929e Mon Sep 17 00:00:00 2001
2From: "Yew, Chang Ching" <chang.ching.yew@intel.com>
3Date: Fri, 21 May 2021 14:11:44 +0800
4Subject: [PATCH] Add X11 support to legacy tools
5
6Upstream-Status: Pending
7
8Signed-off-by: jinchung <jin.chung.teng@intel.com>
9Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com>
10---
11 tools/legacy/sample_common/CMakeLists.txt | 9 +++++++++
12 1 file changed, 9 insertions(+)
13
14diff --git a/tools/legacy/sample_common/CMakeLists.txt b/tools/legacy/sample_common/CMakeLists.txt
15index 5cf69d3..db4de3d 100644
16--- a/tools/legacy/sample_common/CMakeLists.txt
17+++ b/tools/legacy/sample_common/CMakeLists.txt
18@@ -32,6 +32,7 @@ if(UNIX)
19 src/vm/time_linux.cpp
20 src/vm/atomic_linux.cpp
21 src/vm/thread_linux.cpp
22+ src/vaapi_utils_x11.cpp
23 src/vaapi_utils_drm.cpp)
24 else()
25 list(
26@@ -67,6 +68,8 @@ if(UNIX)
27 find_package(PkgConfig REQUIRED)
28 pkg_check_modules(PKG_LIBVA libva libva-drm)
29 pkg_check_modules(PKG_LIBDRM libdrm)
30+ pkg_check_modules(PKG_X11 x11)
31+ pkg_check_modules(PKG_LIBVA_X11 libva-x11>=1.10.0)
32 if(PKG_LIBVA_FOUND)
33 target_compile_definitions(${TARGET} PUBLIC -DLIBVA_SUPPORT)
34 target_include_directories(${TARGET} PUBLIC ${PKG_LIBVA_INCLUDE_DIRS})
35@@ -79,6 +82,12 @@ if(UNIX)
36 else()
37 message(WARNING "libva-drm not found: building without libVA DRM support")
38 endif()
39+ if(PKG_X11_FOUND)
40+ target_compile_definitions(${TARGET} PUBLIC -DLIBVA_X11_SUPPORT)
41+ target_include_directories(${TARGET} PUBLIC ${PKG_X11_LIBRARY_DIRS})
42+ else()
43+ message(WARNING "x11 modules not found: building without libVA X11 support")
44+ endif()
45
46 target_link_libraries(${TARGET} ${CMAKE_DL_LIBS})
47
48--
492.31.1
50
diff --git a/recipes-multimedia/onevpl/onevpl_2021.2.2.bb b/recipes-multimedia/onevpl/onevpl_2021.2.2.bb
index fe5599c..566d84d 100644
--- a/recipes-multimedia/onevpl/onevpl_2021.2.2.bb
+++ b/recipes-multimedia/onevpl/onevpl_2021.2.2.bb
@@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c18ea6bb4786a26bf4eee88a7424a408 \
10 10
11SRC_URI = "git://github.com/oneapi-src/oneVPL.git;protocol=https \ 11SRC_URI = "git://github.com/oneapi-src/oneVPL.git;protocol=https \
12 file://0001-cmake-Allow-build-env-to-set-variables.patch \ 12 file://0001-cmake-Allow-build-env-to-set-variables.patch \
13 file://0001-Add-X11-support-to-legacy-tools.patch \
13 " 14 "
14SRCREV = "17968d8d2299352f5a9e09388d24e81064c81c87" 15SRCREV = "17968d8d2299352f5a9e09388d24e81064c81c87"
15S = "${WORKDIR}/git" 16S = "${WORKDIR}/git"