summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/libva/files/0005-XRGB-force-to-do-swizzle-for-AVC-HEVC.patch
diff options
context:
space:
mode:
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, 0 insertions, 53 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
deleted file mode 100644
index 3d02fef3..00000000
--- a/recipes-multimedia/libva/files/0005-XRGB-force-to-do-swizzle-for-AVC-HEVC.patch
+++ /dev/null
@@ -1,53 +0,0 @@
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