From 9e5bd7c2bf827a6a8f4a3b03573dbaa22ebd8445 Mon Sep 17 00:00:00 2001 From: Cai_Jianxing Date: Tue, 14 Jan 2025 19:22:34 +0800 Subject: [PATCH] [VP] fix argb16 issue regression fix argb16 issue regression. --- .../Xe_XPM_base/vp/hal/packet/vp_render_sfc_xe_xpm_base.cpp | 6 +++++- .../vp/hal/packet/vp_render_sfc_xe_lpm_plus_base.cpp | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/media_driver/media_softlet/agnostic/Xe_M/Xe_XPM_base/vp/hal/packet/vp_render_sfc_xe_xpm_base.cpp b/media_driver/media_softlet/agnostic/Xe_M/Xe_XPM_base/vp/hal/packet/vp_render_sfc_xe_xpm_base.cpp index 2d74156fea..6cb202429a 100644 --- a/media_driver/media_softlet/agnostic/Xe_M/Xe_XPM_base/vp/hal/packet/vp_render_sfc_xe_xpm_base.cpp +++ b/media_driver/media_softlet/agnostic/Xe_M/Xe_XPM_base/vp/hal/packet/vp_render_sfc_xe_xpm_base.cpp @@ -311,13 +311,17 @@ bool SfcRenderXe_Xpm_Base::IsCscNeeded(SFC_CSC_PARAMS &cscParams) MOS_STATUS SfcRenderXe_Xpm_Base::SetMmcParams(PMOS_SURFACE renderTarget, bool isFormatMmcSupported, bool isMmcEnabled) { + VP_FUNC_CALL(); + VP_PUBLIC_CHK_NULL_RETURN(renderTarget); + VP_PUBLIC_CHK_NULL_RETURN(m_renderDataLegacy.sfcStateParams); + if (((renderTarget->Format == Format_A16R16G16B16) || (renderTarget->Format == Format_A16B16G16R16)) && renderTarget->CompressionMode == MOS_MMC_RC) { m_renderDataLegacy.sfcStateParams->bMMCEnable = true; m_renderDataLegacy.sfcStateParams->MMCMode = MOS_MMC_RC; - VP_RENDER_NORMALMESSAGE("renderTarget->Format % d, m_renderData.sfcStateParams->MMCMode % d", renderTarget->Format, m_renderData.sfcStateParams->MMCMode); + VP_RENDER_NORMALMESSAGE("renderTarget->Format % d, m_renderDataLegacy.sfcStateParams->MMCMode % d", renderTarget->Format, m_renderDataLegacy.sfcStateParams->MMCMode); return MOS_STATUS_SUCCESS; } diff --git a/media_softlet/agnostic/Xe_M_plus/Xe_LPM_plus_base/vp/hal/packet/vp_render_sfc_xe_lpm_plus_base.cpp b/media_softlet/agnostic/Xe_M_plus/Xe_LPM_plus_base/vp/hal/packet/vp_render_sfc_xe_lpm_plus_base.cpp index 83753688a2..ff9cdf0811 100644 --- a/media_softlet/agnostic/Xe_M_plus/Xe_LPM_plus_base/vp/hal/packet/vp_render_sfc_xe_lpm_plus_base.cpp +++ b/media_softlet/agnostic/Xe_M_plus/Xe_LPM_plus_base/vp/hal/packet/vp_render_sfc_xe_lpm_plus_base.cpp @@ -687,6 +687,10 @@ MOS_STATUS SfcRenderXe_Lpm_Plus_Base::AddSfcState( MOS_STATUS SfcRenderXe_Lpm_Plus_Base::SetMmcParams(PMOS_SURFACE renderTarget, bool isFormatMmcSupported, bool isMmcEnabled) { + VP_FUNC_CALL(); + VP_PUBLIC_CHK_NULL_RETURN(renderTarget); + VP_PUBLIC_CHK_NULL_RETURN(m_renderData.sfcStateParams); + if (((renderTarget->Format == Format_A16R16G16B16) || (renderTarget->Format == Format_A16B16G16R16)) && renderTarget->CompressionMode == MOS_MMC_RC)