> -----Original Message-----
> From: [email protected] <[email protected]>
> On Behalf Of Yew, Chang Ching
> Sent: Thursday, May 20, 2021 10:22 PM
> To: [email protected]
> Subject: [meta-intel] [PATCH] onevpl: Add X11 render support for samples

Can you send this patch to upstream ?
And also add Upstream-Status to this patch .

> 
> From: "Yew, Chang Ching" <[email protected]>
> 
> Signed-off-by: Teng, Jin Chung <[email protected]>
> Signed-off-by: Yew, Chang Ching <[email protected]>
> ---
>  .../onevpl/0001-Adding-X11-support.patch      | 47 +++++++++++++++++++
>  recipes-multimedia/onevpl/onevpl_2021.2.2.bb  |  1 +
>  2 files changed, 48 insertions(+)
>  create mode 100644 recipes-multimedia/onevpl/onevpl/0001-Adding-X11-
> support.patch
> 
> diff --git a/recipes-multimedia/onevpl/onevpl/0001-Adding-X11-
> support.patch b/recipes-multimedia/onevpl/onevpl/0001-Adding-X11-
> support.patch
> new file mode 100644
> index 00000000..72cfbecc
> --- /dev/null
> +++ b/recipes-multimedia/onevpl/onevpl/0001-Adding-X11-support.patch
> @@ -0,0 +1,47 @@
> +From ab7df1439b181e9abec8c24d23e5d0c73ceb1884 Mon Sep 17 00:00:00
> 2001
> +From: jinchung <[email protected]>
> +Date: Thu, 20 May 2021 13:15:54 +0800
> +Subject: [PATCH] Adding X11 support
> +
> +Signed-off-by: jinchung <[email protected]>
> +---
> + tools/legacy/sample_common/CMakeLists.txt | 9 +++++++++
> + 1 file changed, 9 insertions(+)
> +
> +diff --git a/tools/legacy/sample_common/CMakeLists.txt
> +b/tools/legacy/sample_common/CMakeLists.txt
> +index 5cf69d3..db4de3d 100644
> +--- a/tools/legacy/sample_common/CMakeLists.txt
> ++++ b/tools/legacy/sample_common/CMakeLists.txt
> +@@ -32,6 +32,7 @@ if(UNIX)
> +     src/vm/time_linux.cpp
> +     src/vm/atomic_linux.cpp
> +     src/vm/thread_linux.cpp
> ++    src/vaapi_utils_x11.cpp
> +     src/vaapi_utils_drm.cpp)
> + else()
> +   list(
> +@@ -67,6 +68,8 @@ if(UNIX)
> +   find_package(PkgConfig REQUIRED)
> +   pkg_check_modules(PKG_LIBVA libva libva-drm)
> +   pkg_check_modules(PKG_LIBDRM libdrm)
> ++  pkg_check_modules(PKG_X11 x11)
> ++  pkg_check_modules(PKG_LIBVA_X11 libva-x11>=1.10.0)
> +   if(PKG_LIBVA_FOUND)
> +     target_compile_definitions(${TARGET} PUBLIC -DLIBVA_SUPPORT)
> +     target_include_directories(${TARGET} PUBLIC
> +${PKG_LIBVA_INCLUDE_DIRS}) @@ -79,6 +82,12 @@ if(UNIX)
> +   else()
> +     message(WARNING "libva-drm not found: building without libVA DRM
> support")
> +   endif()
> ++  if(PKG_X11_FOUND)
> ++    target_compile_definitions(${TARGET} PUBLIC -DLIBVA_X11_SUPPORT)
> ++    target_include_directories(${TARGET} PUBLIC
> ++ ${PKG_X11_LIBRARY_DIRS})
> ++  else()
> ++    message(WARNING "x11 modules not found: building without libVA X11
> ++ support")
> ++  endif()
> +
> +   target_link_libraries(${TARGET} ${CMAKE_DL_LIBS})
> +
> +--
> +2.7.4
> +
> diff --git a/recipes-multimedia/onevpl/onevpl_2021.2.2.bb b/recipes-
> multimedia/onevpl/onevpl_2021.2.2.bb
> index fe5599ca..50abdee7 100644
> --- a/recipes-multimedia/onevpl/onevpl_2021.2.2.bb
> +++ b/recipes-multimedia/onevpl/onevpl_2021.2.2.bb
> @@ -10,6 +10,7 @@ LIC_FILES_CHKSUM =
> "file://LICENSE;md5=c18ea6bb4786a26bf4eee88a7424a408 \
> 
>  SRC_URI = "git://github.com/oneapi-src/oneVPL.git;protocol=https \
>              file://0001-cmake-Allow-build-env-to-set-variables.patch \
> +            file://0001-Adding-X11-support.patch \
>              "
>  SRCREV = "17968d8d2299352f5a9e09388d24e81064c81c87"
>  S = "${WORKDIR}/git"
> --
> 2.31.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#7047): 
https://lists.yoctoproject.org/g/meta-intel/message/7047
Mute This Topic: https://lists.yoctoproject.org/mt/82963029/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to