From ec8e3078548cab3dc34c4b490a133acef10ebb3f Mon Sep 17 00:00:00 2001 From: Lim Siew Hoon Date: Fri, 28 Oct 2022 09:45:27 +0800 Subject: onevpl-intel-gpu: upgrade 22.4.4 -> 22.5.4 Signed-off-by: Lim Siew Hoon Signed-off-by: Anuj Mittal --- ...rmance-dependency-on-stream-GOP-pattern-i.patch | 60 ---------------------- .../onevpl/onevpl-intel-gpu_22.4.4.bb | 30 ----------- .../onevpl/onevpl-intel-gpu_22.5.4.bb | 29 +++++++++++ 3 files changed, 29 insertions(+), 90 deletions(-) delete mode 100644 recipes-multimedia/onevpl/onevpl-intel-gpu/0001-Fixed-performance-dependency-on-stream-GOP-pattern-i.patch delete mode 100644 recipes-multimedia/onevpl/onevpl-intel-gpu_22.4.4.bb create mode 100644 recipes-multimedia/onevpl/onevpl-intel-gpu_22.5.4.bb diff --git a/recipes-multimedia/onevpl/onevpl-intel-gpu/0001-Fixed-performance-dependency-on-stream-GOP-pattern-i.patch b/recipes-multimedia/onevpl/onevpl-intel-gpu/0001-Fixed-performance-dependency-on-stream-GOP-pattern-i.patch deleted file mode 100644 index 4bf05be6..00000000 --- a/recipes-multimedia/onevpl/onevpl-intel-gpu/0001-Fixed-performance-dependency-on-stream-GOP-pattern-i.patch +++ /dev/null @@ -1,60 +0,0 @@ -From 83d8c41165fa94ecf8007210e2aa4775bf63973c Mon Sep 17 00:00:00 2001 -From: gfxVPLsdm -Date: Fri, 26 Aug 2022 10:47:29 +0800 -Subject: [PATCH] Fixed performance dependency on stream GOP pattern in HEVC - decoder (#3417) - -Upstream-Status: Backport [https://github.com/oneapi-src/oneVPL-intel-gpu/commit/0987b903bada0d4e41d752a423bc4d0d3b1b37bb] - -Co-authored-by: Sergey Plotnikov ---- - .../codec/h265_dec/include/umc_h265_task_supplier.h | 1 + - .../codec/h265_dec/src/umc_h265_task_supplier.cpp | 13 +++++++++++++ - 2 files changed, 14 insertions(+) - -diff --git a/_studio/shared/umc/codec/h265_dec/include/umc_h265_task_supplier.h b/_studio/shared/umc/codec/h265_dec/include/umc_h265_task_supplier.h -index 824ca949..8bd51d1a 100644 ---- a/_studio/shared/umc/codec/h265_dec/include/umc_h265_task_supplier.h -+++ b/_studio/shared/umc/codec/h265_dec/include/umc_h265_task_supplier.h -@@ -260,6 +260,7 @@ public: - - // Update DPB contents marking frames for reuse - UMC::Status UpdateRefPicMarking(ViewItem_H265 &view, const H265Slice * pSlice); -+ void ResetUnusedFrames(ViewItem_H265 &view); - - void Reset(); - -diff --git a/_studio/shared/umc/codec/h265_dec/src/umc_h265_task_supplier.cpp b/_studio/shared/umc/codec/h265_dec/src/umc_h265_task_supplier.cpp -index f28b86b2..e1c25085 100755 ---- a/_studio/shared/umc/codec/h265_dec/src/umc_h265_task_supplier.cpp -+++ b/_studio/shared/umc/codec/h265_dec/src/umc_h265_task_supplier.cpp -@@ -204,6 +204,18 @@ UMC::Status DecReferencePictureMarking_H265::UpdateRefPicMarking(ViewItem_H265 & - return umcRes; - } - -+void DecReferencePictureMarking_H265::ResetUnusedFrames(ViewItem_H265 &view) -+{ -+ for (H265DecoderFrame *pTmp = view.pDPB->head(); pTmp; pTmp = pTmp->future()) -+ { -+ if(!pTmp->isShortTermRef() && !pTmp->isLongTermRef() && pTmp->GetRefCounter() == 0 && -+ pTmp->m_wasOutputted && pTmp->m_wasDisplayed && pTmp->m_isDisplayable) -+ { -+ pTmp->Reset(); -+ } -+ } -+} -+ - // Check if bitstream resolution has changed - static - bool IsNeedSPSInvalidate(const H265SeqParamSet *old_sps, const H265SeqParamSet *new_sps) -@@ -2585,6 +2597,7 @@ void TaskSupplier_H265::DPBUpdate(const H265Slice * slice) - { - ViewItem_H265 &view = *GetView(); - DecReferencePictureMarking_H265::UpdateRefPicMarking(view, slice); -+ DecReferencePictureMarking_H265::ResetUnusedFrames(view); - } - - // Find a decoder frame instance with specified surface ID --- -2.37.2 - diff --git a/recipes-multimedia/onevpl/onevpl-intel-gpu_22.4.4.bb b/recipes-multimedia/onevpl/onevpl-intel-gpu_22.4.4.bb deleted file mode 100644 index 291e2404..00000000 --- a/recipes-multimedia/onevpl/onevpl-intel-gpu_22.4.4.bb +++ /dev/null @@ -1,30 +0,0 @@ -SUMMARY = "Intel(R) oneVPL runtime for Intel GPU accelerated media processing" -DESCRIPTION = "Intel(R) oneVPL runtime provides an runtime to access hardware-accelerated \ -video decode, encode and filtering on IntelĀ® graphics." - -HOMEPAGE = "https://github.com/oneapi-src/oneVPL-intel-gpu" -BUGTRACKER = "https://github.com/oneapi-src/oneVPL-intel-gpu/issues" - -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=eb8cb45b9b57dbaa9fcc9adc4230202b" - -PE = "1" - -# Only for 64 bit -COMPATIBLE_HOST = '(x86_64).*-linux' -COMPATIBLE_HOST:x86-x32 = "null" - -DEPENDS += "libdrm libva intel-media-driver onevpl pkgconfig-native" - -SRC_URI = "git://github.com/oneapi-src/oneVPL-intel-gpu.git;protocol=https;branch=main;lfs=0 \ - file://0001-Fixed-performance-dependency-on-stream-GOP-pattern-i.patch \ - " - -SRCREV = "e0d2754d0250661a63fff2ee2fa8e0e94b0fcfad" -S = "${WORKDIR}/git" - -FILES:${PN} += " \ - ${libdir}/libmfx-gen/enctools.so \ - " - -inherit cmake diff --git a/recipes-multimedia/onevpl/onevpl-intel-gpu_22.5.4.bb b/recipes-multimedia/onevpl/onevpl-intel-gpu_22.5.4.bb new file mode 100644 index 00000000..b89a8ce8 --- /dev/null +++ b/recipes-multimedia/onevpl/onevpl-intel-gpu_22.5.4.bb @@ -0,0 +1,29 @@ +SUMMARY = "Intel(R) oneVPL runtime for Intel GPU accelerated media processing" +DESCRIPTION = "Intel(R) oneVPL runtime provides an runtime to access hardware-accelerated \ +video decode, encode and filtering on IntelĀ® graphics." + +HOMEPAGE = "https://github.com/oneapi-src/oneVPL-intel-gpu" +BUGTRACKER = "https://github.com/oneapi-src/oneVPL-intel-gpu/issues" + +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=eb8cb45b9b57dbaa9fcc9adc4230202b" + +PE = "1" + +# Only for 64 bit +COMPATIBLE_HOST = '(x86_64).*-linux' +COMPATIBLE_HOST:x86-x32 = "null" + +DEPENDS += "libdrm libva intel-media-driver onevpl pkgconfig-native" + +SRC_URI = "git://github.com/oneapi-src/oneVPL-intel-gpu.git;protocol=https;nobranch=1;lfs=0 \ + " + +SRCREV = "4a8f62f498eddc96473789a5d5e204ec84b69330" +S = "${WORKDIR}/git" + +FILES:${PN} += " \ + ${libdir}/libmfx-gen/enctools.so \ + " + +inherit cmake -- cgit v1.2.3-54-g00ecf