mirror of
git://git.yoctoproject.org/meta-intel.git
synced 2025-07-19 21:09:03 +02:00
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>
This commit is contained in:
parent
9cbaffdb1c
commit
1e8ea173ef
|
@ -0,0 +1,39 @@
|
||||||
|
From 5943f3dcca3ce715e7f721535a031d137255fb70 Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Yew, Chang Ching" <chang.ching.yew@intel.com>
|
||||||
|
Date: Thu, 1 Jul 2021 11:16:33 +0800
|
||||||
|
Subject: [PATCH] Adding X11 DRI3 support
|
||||||
|
|
||||||
|
Upstream-Status: Backport
|
||||||
|
inner-source #e8e7b97
|
||||||
|
|
||||||
|
Signed-off-by: Teng, Jin Chung <jin.chung.teng@intel.com>
|
||||||
|
Signed-off-by: Yew, Chang Ching <chang.ching.yew@intel.com>
|
||||||
|
---
|
||||||
|
tools/legacy/sample_common/CMakeLists.txt | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/tools/legacy/sample_common/CMakeLists.txt b/tools/legacy/sample_common/CMakeLists.txt
|
||||||
|
index b4710f6..5fd97da 100644
|
||||||
|
--- a/tools/legacy/sample_common/CMakeLists.txt
|
||||||
|
+++ b/tools/legacy/sample_common/CMakeLists.txt
|
||||||
|
@@ -73,6 +73,7 @@ if(UNIX)
|
||||||
|
pkg_check_modules(PKG_LIBDRM libdrm)
|
||||||
|
pkg_check_modules(PKG_X11 x11)
|
||||||
|
pkg_check_modules(PKG_LIBVA_X11 libva-x11>=1.10.0)
|
||||||
|
+ pkg_check_modules(PKG_XCB xcb xcb-dri3 x11-xcb xcb-present)
|
||||||
|
pkg_check_modules(PKG_WAYLAND_CLIENT wayland-client)
|
||||||
|
if(PKG_LIBVA_FOUND)
|
||||||
|
target_compile_definitions(${TARGET} PUBLIC -DLIBVA_SUPPORT)
|
||||||
|
@@ -89,6 +90,9 @@ if(UNIX)
|
||||||
|
if(PKG_X11_FOUND)
|
||||||
|
target_compile_definitions(${TARGET} PUBLIC -DLIBVA_X11_SUPPORT)
|
||||||
|
target_include_directories(${TARGET} PUBLIC ${PKG_X11_LIBRARY_DIRS})
|
||||||
|
+ if(PKG_XCB_FOUND)
|
||||||
|
+ target_compile_definitions(${TARGET} PUBLIC -DX11_DRI3_SUPPORT)
|
||||||
|
+ endif()
|
||||||
|
else()
|
||||||
|
message(WARNING "x11 modules not found: building without libVA X11 support")
|
||||||
|
endif()
|
||||||
|
--
|
||||||
|
2.32.0
|
||||||
|
|
|
@ -11,6 +11,7 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c18ea6bb4786a26bf4eee88a7424a408 \
|
||||||
SRC_URI = "git://github.com/oneapi-src/oneVPL.git;protocol=https \
|
SRC_URI = "git://github.com/oneapi-src/oneVPL.git;protocol=https \
|
||||||
file://0001-Adding-Wayland-support-to-legacy-tools.patch \
|
file://0001-Adding-Wayland-support-to-legacy-tools.patch \
|
||||||
file://0001-Corrected-the-install-path.patch \
|
file://0001-Corrected-the-install-path.patch \
|
||||||
|
file://0001-Adding-X11-DRI3-support.patch \
|
||||||
"
|
"
|
||||||
SRCREV = "d5c072584ee6f81305ed85de8759658ab7854606"
|
SRCREV = "d5c072584ee6f81305ed85de8759658ab7854606"
|
||||||
S = "${WORKDIR}/git"
|
S = "${WORKDIR}/git"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user