Signed-off-by: Lim Siew Hoon <[email protected]>
---
 ...ble-CM-Copy-for-ADL-P-and-RPL-P-4938.patch | 32 +++++++++++++++++++
 .../onevpl/onevpl-intel-gpu_23.1.5.bb         |  1 +
 2 files changed, 33 insertions(+)
 create mode 100644 
recipes-multimedia/onevpl/files/0001-Disable-CM-Copy-for-ADL-P-and-RPL-P-4938.patch

diff --git 
a/recipes-multimedia/onevpl/files/0001-Disable-CM-Copy-for-ADL-P-and-RPL-P-4938.patch
 
b/recipes-multimedia/onevpl/files/0001-Disable-CM-Copy-for-ADL-P-and-RPL-P-4938.patch
new file mode 100644
index 00000000..73737cf5
--- /dev/null
+++ 
b/recipes-multimedia/onevpl/files/0001-Disable-CM-Copy-for-ADL-P-and-RPL-P-4938.patch
@@ -0,0 +1,32 @@
+From 22e4f3dfc7f5510cd1fbec3e4e9e1845d35a301a Mon Sep 17 00:00:00 2001
+From: gfxVPLsdm <[email protected]>
+Date: Tue, 4 Apr 2023 15:00:15 +0800
+Subject: [PATCH] Disable CM Copy for ADL-P and RPL-P (#4938)
+
+Co-authored-by: Teng, Jin Chung <[email protected]>
+
+upstream-status: accepted
+Expect it to be removed once move to intel-onevpl-23.2.0 and above.
+https://github.com/oneapi-src/oneVPL-intel-gpu/commit/2ef453cb231ad12a912669d0fc091d8365f436e4
+---
+ _studio/shared/src/libmfx_core_vaapi.cpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/_studio/shared/src/libmfx_core_vaapi.cpp 
b/_studio/shared/src/libmfx_core_vaapi.cpp
+index 7212e572..baeafb7f 100644
+--- a/_studio/shared/src/libmfx_core_vaapi.cpp
++++ b/_studio/shared/src/libmfx_core_vaapi.cpp
+@@ -830,8 +830,8 @@ bool VAAPIVideoCORE_T<Base>::IsCmSupported()
+ template <class Base>
+ bool VAAPIVideoCORE_T<Base>::IsCmCopyEnabledByDefault()
+ {
+-    // For Linux by default CM copy is ON on RKL/ADL
+-    return IsCmSupported() && GetHWType() != MFX_HW_DG1 && GetHWType() != 
MFX_HW_TGL_LP;
++    // For Linux by default CM copy is ON on RKL/ADL-S
++    return IsCmSupported() && GetHWType() != MFX_HW_DG1 && GetHWType() != 
MFX_HW_TGL_LP && GetHWType() != MFX_HW_ADL_P;
+ }
+ 
+ template <class Base>
+-- 
+2.40.1
+
diff --git a/recipes-multimedia/onevpl/onevpl-intel-gpu_23.1.5.bb 
b/recipes-multimedia/onevpl/onevpl-intel-gpu_23.1.5.bb
index 2ce0949c..fed135b6 100644
--- a/recipes-multimedia/onevpl/onevpl-intel-gpu_23.1.5.bb
+++ b/recipes-multimedia/onevpl/onevpl-intel-gpu_23.1.5.bb
@@ -17,6 +17,7 @@ COMPATIBLE_HOST:x86-x32 = "null"
 DEPENDS += "libdrm libva intel-media-driver onevpl pkgconfig-native"
 
 SRC_URI = 
"git://github.com/oneapi-src/oneVPL-intel-gpu.git;protocol=https;nobranch=1;lfs=0
 \
+           file://0001-Disable-CM-Copy-for-ADL-P-and-RPL-P-4938.patch \
           "
 
 SRCREV = "3bc35c59ab64f60c3f73eaa83ada600859999493"
-- 
2.40.1

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

Reply via email to