summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia
diff options
context:
space:
mode:
authorLim Siew Hoon <siew.hoon.lim@intel.com>2021-01-27 08:05:20 (GMT)
committerAnuj Mittal <anuj.mittal@intel.com>2021-01-27 15:32:58 (GMT)
commit0f30b704dfaf2885945a105340b5a206cd1a2212 (patch)
tree2ba620f560d5e9d478f4377c115c5b830e0212d9 /recipes-multimedia
parentd13f1cc95e4ad3c2ee17b1bf3dc8f1cf58f7cd08 (diff)
downloadmeta-intel-0f30b704dfaf2885945a105340b5a206cd1a2212.tar.gz
intel-media-driver: backport fix
fixes dmabuf sharing with glimagesink failing with AYUV color format between msdkvpp and glimagesink from gst-plugins-bad master Backport patches: * 0001-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com> Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Diffstat (limited to 'recipes-multimedia')
-rw-r--r--recipes-multimedia/libva/files/0001-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch38
-rw-r--r--recipes-multimedia/libva/intel-media-driver_20.4.5.bb1
2 files changed, 39 insertions, 0 deletions
diff --git a/recipes-multimedia/libva/files/0001-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch b/recipes-multimedia/libva/files/0001-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch
new file mode 100644
index 0000000..40364dc
--- /dev/null
+++ b/recipes-multimedia/libva/files/0001-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch
@@ -0,0 +1,38 @@
1From 16d5df20c71c97560e44b45e23bc7946cbb8668f Mon Sep 17 00:00:00 2001
2From: Lim Siew Hoon <siew.hoon.lim@intel.com>
3Date: Thu, 24 Dec 2020 18:47:56 +0800
4Subject: [PATCH] media-libva: Add export AYUV color in vaExportSurfaceHandle
5 when VA_EXPORT_SURFACE_COMPOSED_LAYERS is not set.
6
7Example:
8gst-launch-1.0 videotestsrc ! msdkvpp \
9'video/x-raw(memory:DMABuf)',format=VUYA ! glimagesink
10
11fixes #1114
12
13Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
14
15Upstream-status: backport
16https://github.com/intel/media-driver/commit/ff0cb9efc9f30712e8b967da629b2804c9a128a1
17
18Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
19---
20 media_driver/linux/common/ddi/media_libva.cpp | 2 ++
21 1 file changed, 2 insertions(+)
22
23diff --git a/media_driver/linux/common/ddi/media_libva.cpp b/media_driver/linux/common/ddi/media_libva.cpp
24index 875603ad..93add4cd 100755
25--- a/media_driver/linux/common/ddi/media_libva.cpp
26+++ b/media_driver/linux/common/ddi/media_libva.cpp
27@@ -6679,6 +6679,8 @@ static uint32_t DdiMedia_GetDrmFormatOfSeparatePlane(uint32_t fourcc, int plane)
28 return DRM_FORMAT_VYUY;
29 case VA_FOURCC_UYVY:
30 return DRM_FORMAT_UYVY;
31+ case VA_FOURCC_AYUV:
32+ return DRM_FORMAT_AYUV;
33 case VA_FOURCC_Y210:
34 return DRM_FORMAT_Y210;
35 case VA_FOURCC_Y216:
36--
372.17.1
38
diff --git a/recipes-multimedia/libva/intel-media-driver_20.4.5.bb b/recipes-multimedia/libva/intel-media-driver_20.4.5.bb
index 513f9ba..2d22b3b 100644
--- a/recipes-multimedia/libva/intel-media-driver_20.4.5.bb
+++ b/recipes-multimedia/libva/intel-media-driver_20.4.5.bb
@@ -19,6 +19,7 @@ REQUIRED_DISTRO_FEATURES = "opengl"
19DEPENDS += "libva gmmlib" 19DEPENDS += "libva gmmlib"
20 20
21SRC_URI = "git://github.com/intel/media-driver.git;protocol=https;branch=intel-media-20.4 \ 21SRC_URI = "git://github.com/intel/media-driver.git;protocol=https;branch=intel-media-20.4 \
22 file://0001-media-libva-Add-export-AYUV-color-in-vaExportSurface.patch \
22 " 23 "
23 24
24SRCREV = "74e2f11131def34314ce52940e8d0028a4aba01c" 25SRCREV = "74e2f11131def34314ce52940e8d0028a4aba01c"