summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/onevpl/onevpl/0001-Adding-X11-DRI3-support.patch
diff options
context:
space:
mode:
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.patch39
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 0000000..4539c69
--- /dev/null
+++ b/recipes-multimedia/onevpl/onevpl/0001-Adding-X11-DRI3-support.patch
@@ -0,0 +1,39 @@
1From 5943f3dcca3ce715e7f721535a031d137255fb70 Mon Sep 17 00:00:00 2001
2From: "Yew, Chang Ching" <chang.ching.yew@intel.com>
3Date: Thu, 1 Jul 2021 11:16:33 +0800
4Subject: [PATCH] Adding X11 DRI3 support
5
6Upstream-Status: Backport
7inner-source #e8e7b97
8
9Signed-off-by: Teng, Jin Chung <jin.chung.teng@intel.com>
10Signed-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
15diff --git a/tools/legacy/sample_common/CMakeLists.txt b/tools/legacy/sample_common/CMakeLists.txt
16index 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--
382.32.0
39