diff options
Diffstat (limited to 'recipes-multimedia/onevpl/onevpl/0001-Adding-X11-DRI3-support.patch')
-rw-r--r-- | recipes-multimedia/onevpl/onevpl/0001-Adding-X11-DRI3-support.patch | 39 |
1 files changed, 39 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 | |||