summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/libva/files/0005-XRGB-force-to-do-swizzle-for-AVC-HEVC.patch
diff options
context:
space:
mode:
authorLim Siew Hoon <siew.hoon.lim@intel.com>2023-11-24 09:23:01 +0800
committerAnuj Mittal <anuj.mittal@intel.com>2023-11-24 11:56:03 +0800
commit587dce125d25031b00b2bd3cb67f8ee227bf0977 (patch)
tree72c139366915d23268497d0aad2a5cee4e58e040 /recipes-multimedia/libva/files/0005-XRGB-force-to-do-swizzle-for-AVC-HEVC.patch
parent2ab87a299a0c544806f6bcbd751eaacac649c144 (diff)
downloadmeta-intel-587dce125d25031b00b2bd3cb67f8ee227bf0977.tar.gz
intel-media-driver: upgrade 23.2.4 -> 23.3.5
Removed patches already merged: - 0001-ARGB-force-to-tile4.patch - 0001-Fix-FC-Corruption-When-Blending-without-Colorfill-in.patch - 0001-Fix-FC-Corruption-When-Blending-without-Colorfill.patch - 0001-Force-to-render-path-according-to-app-setting.patch - 0002-Add-DRM-format-mappings-for-JPEG-decoder-output.patch Rebased patches: - 0001-Disable-VP9-padding-on-MTL.patch - 0004-Set-sRGB-color-space-for-non-video-wall-and-no-backg.patch Added code fixed and new DG2 device id support: - 0002-Add-VASurfaceAttribMemoryType-for-ACM.patch - 0003-Force-ARGB-surface-to-tile4-for-ACM.patch - 0005-XRGB-force-to-do-swizzle-for-AVC-HEVC.patch - 0006-Add-DG2-DIDs.patch Release notes: https://github.com/intel/media-driver/releases/tag/intel-media-23.3.5 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/libva/files/0005-XRGB-force-to-do-swizzle-for-AVC-HEVC.patch')
-rw-r--r--recipes-multimedia/libva/files/0005-XRGB-force-to-do-swizzle-for-AVC-HEVC.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/recipes-multimedia/libva/files/0005-XRGB-force-to-do-swizzle-for-AVC-HEVC.patch b/recipes-multimedia/libva/files/0005-XRGB-force-to-do-swizzle-for-AVC-HEVC.patch
new file mode 100644
index 00000000..3d02fef3
--- /dev/null
+++ b/recipes-multimedia/libva/files/0005-XRGB-force-to-do-swizzle-for-AVC-HEVC.patch
@@ -0,0 +1,53 @@
1From c2a7a53a71b252593fb31cba24cddf7a5f466ba1 Mon Sep 17 00:00:00 2001
2From: Vincent Cheah Beng Keat <vincent.beng.keat.cheah@intel.com>
3Date: Wed, 18 Oct 2023 10:49:13 +0800
4Subject: [PATCH 5/7] XRGB force to do swizzle for AVC/HEVC
5
6This is to fix msdkh264enc/msdkh265enc incorrect encoded output when having BGRx input.
7
8Upstream-Status: Backport [https://github.com/intel/media-driver/commit/433068b0db298f9592880f25601449366b4aa8d3]
9
10Signed-off-by: Cheah, Vincent Beng Keat <vincent.beng.keat.cheah@intel.com>
11---
12 .../linux/common/codec/ddi/enc/ddi_encode_avc_specific.h | 1 +
13 .../linux/common/codec/ddi/enc/ddi_encode_hevc_specific.h | 6 ++++--
14 2 files changed, 5 insertions(+), 2 deletions(-)
15
16diff --git a/media_softlet/linux/common/codec/ddi/enc/ddi_encode_avc_specific.h b/media_softlet/linux/common/codec/ddi/enc/ddi_encode_avc_specific.h
17index 057af4420..e4a1cbe58 100644
18--- a/media_softlet/linux/common/codec/ddi/enc/ddi_encode_avc_specific.h
19+++ b/media_softlet/linux/common/codec/ddi/enc/ddi_encode_avc_specific.h
20@@ -557,6 +557,7 @@ private:
21 inline bool NeedDisplayFormatSwizzle(DDI_MEDIA_SURFACE *rawSurface)
22 {
23 if (Media_Format_A8R8G8B8 == rawSurface->format ||
24+ Media_Format_X8R8G8B8 == rawSurface->format ||
25 Media_Format_B10G10R10A2 == rawSurface->format)
26 {
27 return true;
28diff --git a/media_softlet/linux/common/codec/ddi/enc/ddi_encode_hevc_specific.h b/media_softlet/linux/common/codec/ddi/enc/ddi_encode_hevc_specific.h
29index 65483b43d..56e688e4a 100644
30--- a/media_softlet/linux/common/codec/ddi/enc/ddi_encode_hevc_specific.h
31+++ b/media_softlet/linux/common/codec/ddi/enc/ddi_encode_hevc_specific.h
32@@ -293,14 +293,16 @@ private:
33 bool ret = false;
34
35 if (Media_Format_A8R8G8B8 == rawSurface->format ||
36- Media_Format_B10G10R10A2 == rawSurface->format)
37+ Media_Format_X8R8G8B8 == rawSurface->format ||
38+ Media_Format_B10G10R10A2 == rawSurface->format)
39 {
40 ret = true;
41 }
42
43 if (ret &&
44 (Media_Format_A8R8G8B8 == reconSurface->format ||
45- Media_Format_B10G10R10A2 == reconSurface->format))
46+ Media_Format_X8R8G8B8 == reconSurface->format ||
47+ Media_Format_B10G10R10A2 == reconSurface->format))
48 {
49 ret = false;
50 }
51--
522.40.1
53