diff options
Diffstat (limited to 'recipes-multimedia/onevpl')
-rw-r--r-- | recipes-multimedia/onevpl/onevpl/0001-Adding-X11-DRI3-support.patch | 39 | ||||
-rw-r--r-- | recipes-multimedia/onevpl/onevpl_2021.4.0.bb | 1 |
2 files changed, 40 insertions, 0 deletions
diff --git a/recipes-multimedia/onevpl/onevpl/0001-Adding-X11-DRI3-support.patch b/recipes-multimedia/onevpl/onevpl/0001-Adding-X11-DRI3-support.patch new file mode 100644 index 00000000..4539c69b --- /dev/null +++ b/recipes-multimedia/onevpl/onevpl/0001-Adding-X11-DRI3-support.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | From 5943f3dcca3ce715e7f721535a031d137255fb70 Mon Sep 17 00:00:00 2001 | ||
2 | From: "Yew, Chang Ching" <chang.ching.yew@intel.com> | ||
3 | Date: Thu, 1 Jul 2021 11:16:33 +0800 | ||
4 | Subject: [PATCH] Adding X11 DRI3 support | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | inner-source #e8e7b97 | ||
8 | |||
9 | Signed-off-by: Teng, Jin Chung <jin.chung.teng@intel.com> | ||
10 | Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com> | ||
11 | --- | ||
12 | tools/legacy/sample_common/CMakeLists.txt | 4 ++++ | ||
13 | 1 file changed, 4 insertions(+) | ||
14 | |||
15 | diff --git a/tools/legacy/sample_common/CMakeLists.txt b/tools/legacy/sample_common/CMakeLists.txt | ||
16 | index b4710f6..5fd97da 100644 | ||
17 | --- a/tools/legacy/sample_common/CMakeLists.txt | ||
18 | +++ b/tools/legacy/sample_common/CMakeLists.txt | ||
19 | @@ -73,6 +73,7 @@ if(UNIX) | ||
20 | pkg_check_modules(PKG_LIBDRM libdrm) | ||
21 | pkg_check_modules(PKG_X11 x11) | ||
22 | pkg_check_modules(PKG_LIBVA_X11 libva-x11>=1.10.0) | ||
23 | + pkg_check_modules(PKG_XCB xcb xcb-dri3 x11-xcb xcb-present) | ||
24 | pkg_check_modules(PKG_WAYLAND_CLIENT wayland-client) | ||
25 | if(PKG_LIBVA_FOUND) | ||
26 | target_compile_definitions(${TARGET} PUBLIC -DLIBVA_SUPPORT) | ||
27 | @@ -89,6 +90,9 @@ if(UNIX) | ||
28 | if(PKG_X11_FOUND) | ||
29 | target_compile_definitions(${TARGET} PUBLIC -DLIBVA_X11_SUPPORT) | ||
30 | target_include_directories(${TARGET} PUBLIC ${PKG_X11_LIBRARY_DIRS}) | ||
31 | + if(PKG_XCB_FOUND) | ||
32 | + target_compile_definitions(${TARGET} PUBLIC -DX11_DRI3_SUPPORT) | ||
33 | + endif() | ||
34 | else() | ||
35 | message(WARNING "x11 modules not found: building without libVA X11 support") | ||
36 | endif() | ||
37 | -- | ||
38 | 2.32.0 | ||
39 | |||
diff --git a/recipes-multimedia/onevpl/onevpl_2021.4.0.bb b/recipes-multimedia/onevpl/onevpl_2021.4.0.bb index 4d9591fa..464be1e0 100644 --- a/recipes-multimedia/onevpl/onevpl_2021.4.0.bb +++ b/recipes-multimedia/onevpl/onevpl_2021.4.0.bb | |||
@@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c18ea6bb4786a26bf4eee88a7424a408 \ | |||
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-Adding-Wayland-support-to-legacy-tools.patch \ | 12 | file://0001-Adding-Wayland-support-to-legacy-tools.patch \ |
13 | file://0001-Corrected-the-install-path.patch \ | 13 | file://0001-Corrected-the-install-path.patch \ |
14 | file://0001-Adding-X11-DRI3-support.patch \ | ||
14 | " | 15 | " |
15 | SRCREV = "d5c072584ee6f81305ed85de8759658ab7854606" | 16 | SRCREV = "d5c072584ee6f81305ed85de8759658ab7854606" |
16 | S = "${WORKDIR}/git" | 17 | S = "${WORKDIR}/git" |