summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYew, Chang Ching <chang.ching.yew@intel.com>2021-07-02 18:39:12 (GMT)
committerAnuj Mittal <anuj.mittal@intel.com>2021-07-06 05:51:35 (GMT)
commit1e8ea173efe0ecb663f8515d921a25497bd96de6 (patch)
tree6a7d367e58660dc969f209c89d35d685a88dbe24
parent9cbaffdb1cb0bf0a94d3faebf70b441b570ed699 (diff)
downloadmeta-intel-1e8ea173efe0ecb663f8515d921a25497bd96de6.tar.gz
onevpl: Add X11 DRI3 support
Add support for DRI3 XCB extension for samples applications for DMA-BUF direct rendering and synchronization. Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
-rw-r--r--recipes-multimedia/onevpl/onevpl/0001-Adding-X11-DRI3-support.patch39
-rw-r--r--recipes-multimedia/onevpl/onevpl_2021.4.0.bb1
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 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
diff --git a/recipes-multimedia/onevpl/onevpl_2021.4.0.bb b/recipes-multimedia/onevpl/onevpl_2021.4.0.bb
index 4d9591f..464be1e 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 \
11SRC_URI = "git://github.com/oneapi-src/oneVPL.git;protocol=https \ 11SRC_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 "
15SRCREV = "d5c072584ee6f81305ed85de8759658ab7854606" 16SRCREV = "d5c072584ee6f81305ed85de8759658ab7854606"
16S = "${WORKDIR}/git" 17S = "${WORKDIR}/git"