summaryrefslogtreecommitdiffstats
path: root/recipes-multimedia/onevpl/files/0001-Encode-Bugfix-for-HEVC-VDENC-422-RPL-caps-issue.-588.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-multimedia/onevpl/files/0001-Encode-Bugfix-for-HEVC-VDENC-422-RPL-caps-issue.-588.patch')
-rw-r--r--recipes-multimedia/onevpl/files/0001-Encode-Bugfix-for-HEVC-VDENC-422-RPL-caps-issue.-588.patch70
1 files changed, 0 insertions, 70 deletions
diff --git a/recipes-multimedia/onevpl/files/0001-Encode-Bugfix-for-HEVC-VDENC-422-RPL-caps-issue.-588.patch b/recipes-multimedia/onevpl/files/0001-Encode-Bugfix-for-HEVC-VDENC-422-RPL-caps-issue.-588.patch
deleted file mode 100644
index 6209f960..00000000
--- a/recipes-multimedia/onevpl/files/0001-Encode-Bugfix-for-HEVC-VDENC-422-RPL-caps-issue.-588.patch
+++ /dev/null
@@ -1,70 +0,0 @@
1From 3830e393b6e2807f842d3cacda575fa715827e62 Mon Sep 17 00:00:00 2001
2From: gfxVPLsdm <gfxvplsdm@intel.com>
3Date: Thu, 19 Oct 2023 13:03:53 +0800
4Subject: [PATCH] [Encode] Bugfix for HEVC VDENC 422 RPL caps issue. (#5886)
5
6Fixed HEVC VDENC 422 RPL caps issue.
7
8Co-authored-by: Wenjuan Zhang <wenjuan.zhang@intel.com>
9
10Upstream-Status: Backport [https://github.com/oneapi-src/oneVPL-intel-gpu/commit/3830e393b6e2807f842d3cacda575fa715827e62]
11Signed-off-by: Lim Siew Hoon <siew.hoon.lim@intel.com>
12---
13 .../hevc/agnostic/base/hevcehw_base_recon422.h | 4 +++-
14 .../hevc/agnostic/base/hevcehw_base_recon422_ext.h | 11 +++++++++++
15 .../hevc/linux/base/hevcehw_base_va_packer_lin.cpp | 2 +-
16 3 files changed, 15 insertions(+), 2 deletions(-)
17
18diff --git a/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_recon422.h b/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_recon422.h
19index 24bf5cf2..d150ca1c 100644
20--- a/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_recon422.h
21+++ b/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_recon422.h
22@@ -36,7 +36,9 @@ class Recon422
23 public:
24 #define DECL_BLOCK_LIST\
25 DECL_BLOCK(SetCallChain)\
26- DECL_BLOCK(SetRecon422Caps)
27+ DECL_BLOCK(SetRecon422Caps)\
28+ DECL_BLOCK(HardcodeCaps)\
29+ DECL_BLOCK(HardcodeCapsExt)
30 #define DECL_FEATURE_NAME "Base_RECON422"
31 #include "hevcehw_decl_blocks.h"
32
33diff --git a/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_recon422_ext.h b/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_recon422_ext.h
34index 165c96b1..63b3c301 100644
35--- a/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_recon422_ext.h
36+++ b/_studio/mfx_lib/encode_hw/hevc/agnostic/base/hevcehw_base_recon422_ext.h
37@@ -40,6 +40,17 @@ public:
38 {}
39
40 protected:
41+ virtual void Query1WithCaps(const FeatureBlocks& /*blocks*/, TPushQ1 Push) override
42+ {
43+ Push(BLK_HardcodeCaps
44+ , [this](const mfxVideoParam&, mfxVideoParam&, StorageRW& strg) -> mfxStatus
45+ {
46+ auto& caps = HEVCEHW::Base::Glob::EncodeCaps::Get(strg);
47+ caps.YUV422ReconSupport = !caps.Color420Only;
48+ return MFX_ERR_NONE;
49+ });
50+ }
51+
52 virtual void Query1NoCaps(const FeatureBlocks& blocks, TPushQ1 Push) override
53 {
54 using Base::Glob;
55diff --git a/_studio/mfx_lib/encode_hw/hevc/linux/base/hevcehw_base_va_packer_lin.cpp b/_studio/mfx_lib/encode_hw/hevc/linux/base/hevcehw_base_va_packer_lin.cpp
56index 1ffc9388..46a1f69c 100644
57--- a/_studio/mfx_lib/encode_hw/hevc/linux/base/hevcehw_base_va_packer_lin.cpp
58+++ b/_studio/mfx_lib/encode_hw/hevc/linux/base/hevcehw_base_va_packer_lin.cpp
59@@ -60,7 +60,7 @@ void VAPacker::Query1WithCaps(const FeatureBlocks& /*blocks*/, TPushQ1 Push)
60
61 caps.MaxEncodedBitDepth |= (!caps.BitDepth8Only);
62 caps.YUV444ReconSupport |= (!caps.Color420Only && IsOn(par.mfx.LowPower));
63- caps.YUV422ReconSupport &= (!caps.Color420Only);
64+ caps.YUV422ReconSupport &= (!caps.Color420Only && !IsOn(par.mfx.LowPower));
65
66 return MFX_ERR_NONE;
67 });
68--
692.40.1
70