Skip to content

Commit

Permalink
[Encode] Rext444 unaligned surface p frame corruption issue
Browse files Browse the repository at this point in the history
* [Encode] Rext444 unaligned surface p frame corruption issue

align u/v offset to 8/16
  • Loading branch information
LesterMinGSE authored and intel-mediadev committed Jun 21, 2024
1 parent 2a60d2d commit a455c11
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -727,13 +727,13 @@ MHW_SETPAR_DECL_SRC(VDENC_REF_SURFACE_STATE, Av1BasicFeature)
{
params.pitch = m_reconSurface.dwPitch / 4;
}
params.uOffset = m_rawSurfaceToPak->dwHeight;
params.vOffset = m_rawSurfaceToPak->dwHeight << 1;
params.uOffset = MOS_ALIGN_CEIL(m_rawSurfaceToPak->dwHeight, 8);
params.vOffset = MOS_ALIGN_CEIL(m_rawSurfaceToPak->dwHeight, 8) << 1;
}
else if (m_reconSurface.Format == Format_Y216 || m_reconSurface.Format == Format_Y210 || m_reconSurface.Format == Format_YUY2)
{
params.uOffset = m_rawSurfaceToPak->dwHeight;
params.vOffset = m_rawSurfaceToPak->dwHeight;
params.uOffset = MOS_ALIGN_CEIL(m_rawSurfaceToPak->dwHeight, 8);
params.vOffset = MOS_ALIGN_CEIL(m_rawSurfaceToPak->dwHeight, 8);
}

return MOS_STATUS_SUCCESS;
Expand Down

0 comments on commit a455c11

Please sign in to comment.