diff options
| -rw-r--r-- | recipes-multimedia/onevpl/onevpl/0001-Add-X11-support-to-legacy-tools.patch | 50 | ||||
| -rw-r--r-- | recipes-multimedia/onevpl/onevpl_2021.2.2.bb | 1 |
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 00000000..fd7faa82 --- /dev/null +++ b/recipes-multimedia/onevpl/onevpl/0001-Add-X11-support-to-legacy-tools.patch | |||
| @@ -0,0 +1,50 @@ | |||
| 1 | From 3c485ba902da0a4a2e9fc43b34eb9174c739929e Mon Sep 17 00:00:00 2001 | ||
| 2 | From: "Yew, Chang Ching" <chang.ching.yew@intel.com> | ||
| 3 | Date: Fri, 21 May 2021 14:11:44 +0800 | ||
| 4 | Subject: [PATCH] Add X11 support to legacy tools | ||
| 5 | |||
| 6 | Upstream-Status: Pending | ||
| 7 | |||
| 8 | Signed-off-by: jinchung <jin.chung.teng@intel.com> | ||
| 9 | Signed-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 | |||
| 14 | diff --git a/tools/legacy/sample_common/CMakeLists.txt b/tools/legacy/sample_common/CMakeLists.txt | ||
| 15 | index 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 | -- | ||
| 49 | 2.31.1 | ||
| 50 | |||
diff --git a/recipes-multimedia/onevpl/onevpl_2021.2.2.bb b/recipes-multimedia/onevpl/onevpl_2021.2.2.bb index fe5599ca..566d84d4 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 | ||
| 11 | SRC_URI = "git://github.com/oneapi-src/oneVPL.git;protocol=https \ | 11 | SRC_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 | " |
| 14 | SRCREV = "17968d8d2299352f5a9e09388d24e81064c81c87" | 15 | SRCREV = "17968d8d2299352f5a9e09388d24e81064c81c87" |
| 15 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
