This patches is submitting into upstream. Pending to be
merge. It using to fix vaapioverlay plugin to support
64CH channel rendering.

Signed-off-by: Lim Siew Hoon <[email protected]>
---
 ...-changed-VPHAL_MAX_SOURCES-set-to-65.patch | 34 +++++++++++++++++++
 .../libva/intel-media-driver_21.1.3.bb        |  1 +
 2 files changed, 35 insertions(+)
 create mode 100644 
recipes-multimedia/libva/files/0001-changed-VPHAL_MAX_SOURCES-set-to-65.patch

diff --git 
a/recipes-multimedia/libva/files/0001-changed-VPHAL_MAX_SOURCES-set-to-65.patch 
b/recipes-multimedia/libva/files/0001-changed-VPHAL_MAX_SOURCES-set-to-65.patch
new file mode 100644
index 00000000..d2247641
--- /dev/null
+++ 
b/recipes-multimedia/libva/files/0001-changed-VPHAL_MAX_SOURCES-set-to-65.patch
@@ -0,0 +1,34 @@
+From 864bd3a2d9ab106f0317f442b555bde13e28fbc3 Mon Sep 17 00:00:00 2001
+From: Lim Siew Hoon <[email protected]>
+Date: Wed, 14 Apr 2021 13:15:18 +0800
+Subject: [meta-intel][PATCH] changed VPHAL_MAX_SOURCES set to 65
+
+Issue report in:
+https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/issues/303
+
+Platform: TGL-U
+
+Upstream-status: submitted
+https://github.com/intel/media-driver/pull/1180
+
+Signed-off-by: Lim Siew Hoon <[email protected]>
+---
+ media_driver/agnostic/common/vp/hal/vphal_common.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/media_driver/agnostic/common/vp/hal/vphal_common.h 
b/media_driver/agnostic/common/vp/hal/vphal_common.h
+index fa92b17b..d3d9e325 100644
+--- a/media_driver/agnostic/common/vp/hal/vphal_common.h
++++ b/media_driver/agnostic/common/vp/hal/vphal_common.h
+@@ -207,7 +207,7 @@ extern "C" {
+ #define NLAS_NONLINEARCROP_DEFAULT    0.0F
+ #define NLAS_NONLINEARCROP_STEP       0.001F
+ 
+-#define VPHAL_MAX_SOURCES               17       //!< worst case: 16 
sub-streams + 1 pri video
++#define VPHAL_MAX_SOURCES               65       //!< worst case: 64 
sub-streams + 1 pri video
+ #define VPHAL_MAX_CHANNELS              2
+ #define VPHAL_MAX_TARGETS               8        //!< multi output support
+ #define VPHAL_MAX_FUTURE_FRAMES         18       //!< maximum future frames 
supported in VPHAL
+-- 
+2.31.1
+
diff --git a/recipes-multimedia/libva/intel-media-driver_21.1.3.bb 
b/recipes-multimedia/libva/intel-media-driver_21.1.3.bb
index 637d8f0a..8b7ff5e7 100644
--- a/recipes-multimedia/libva/intel-media-driver_21.1.3.bb
+++ b/recipes-multimedia/libva/intel-media-driver_21.1.3.bb
@@ -19,6 +19,7 @@ REQUIRED_DISTRO_FEATURES = "opengl"
 DEPENDS += "libva gmmlib"
 
 SRC_URI = "git://github.com/intel/media-driver.git;protocol=https;nobranch=1 \
+           file://0001-changed-VPHAL_MAX_SOURCES-set-to-65.patch \
           "
 
 SRCREV = "bec8e1382637589bc3f302edf6c866bec3d754dd"
-- 
2.31.1

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

Reply via email to