Skip to content

Commit

Permalink
[VP] Fix typo for potplayer page fault legacy path
Browse files Browse the repository at this point in the history
Fix typo for potplayer page fault legacy path.
  • Loading branch information
VincentCheungKokomo authored and intel-mediadev committed Jul 1, 2024
1 parent e215d12 commit c455059
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions media_driver/agnostic/common/vp/hal/vphal_render_sfc_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ MOS_STATUS VphalSfcState::SetSfcStateParams(
else
{
uint32_t newDstHight = pSrcSurface->rcDst.bottom;
uint32_t newSrcWidth = MOS_UF_ROUND(newDstHight / m_renderData.fScaleY);
uint32_t newSrcWidth = MOS_UF_ROUND(newDstHight / m_renderData.fScaleX);
pSrcSurface->rcSrc.left = pSrcSurface->rcSrc.right - newSrcWidth;
}
}
Expand All @@ -1219,7 +1219,7 @@ MOS_STATUS VphalSfcState::SetSfcStateParams(
else
{
uint32_t newDstWidth = pSrcSurface->rcDst.right;
uint32_t newSrcHight = MOS_UF_ROUND(newDstWidth / m_renderData.fScaleX);
uint32_t newSrcHight = MOS_UF_ROUND(newDstWidth / m_renderData.fScaleY);
pSrcSurface->rcSrc.top = pSrcSurface->rcSrc.bottom - newSrcHight;
}
}
Expand Down

0 comments on commit c455059

Please sign in to comment.