Skip to content

Commit

Permalink
[Media Common][VP][Trinity11] Fix TDR on internal res
Browse files Browse the repository at this point in the history
Destroy resource synchronously for compressed surface.
  • Loading branch information
pingliwa authored and intel-mediadev committed Nov 10, 2023
1 parent bb4187a commit 5520656
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,12 @@ MOS_STATUS VpAllocator::DestroySurface(MOS_SURFACE *surface, MOS_GFXRES_FREE_FLA
{
VP_FUNC_CALL();
VP_PUBLIC_CHK_NULL_RETURN(m_allocator);

return m_allocator->DestroySurface(surface, flags);
MOS_GFXRES_FREE_FLAGS resFreeFlags = {0};
if (IsSyncFreeNeededForMMCSurface(surface))
{
resFreeFlags.SynchronousDestroy = 1;
}
return m_allocator->DestroySurface(surface, resFreeFlags);
}

VP_SURFACE* VpAllocator::AllocateVpSurface(MOS_ALLOC_GFXRES_PARAMS &param, bool zeroOnAllocate, VPHAL_CSPACE ColorSpace, uint32_t ChromaSiting)
Expand Down

0 comments on commit 5520656

Please sign in to comment.