Skip to content

Commit

Permalink
[VP] fix argb16 issue regression
Browse files Browse the repository at this point in the history
fix argb16 issue regression.
  • Loading branch information
Dylan-debug authored and intel-mediadev committed Jan 14, 2025
1 parent 5e76079 commit 9e5bd7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9e5bd7c

Please sign in to comment.