summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/onevpl/onevpl/0001-Add-X11-support-to-legacy-tools.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/onevpl/onevpl/0001-Add-X11-support-to-legacy-tools.patch')
-rw-r--r--recipes-multimedia/onevpl/onevpl/0001-Add-X11-support-to-legacy-tools.patch50
1 files changed, 0 insertions, 50 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
deleted file mode 100644
index fd7faa8..0000000
--- a/recipes-multimedia/onevpl/onevpl/0001-Add-X11-support-to-legacy-tools.patch
+++ /dev/null
@@ -1,50 +0,0 @@
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