Skip to content

Commit 5520656

Browse files
pingliwaintel-mediadev
authored andcommitted
[Media Common][VP][Trinity11] Fix TDR on internal res
Destroy resource synchronously for compressed surface.
1 parent bb4187a commit 5520656

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

media_softlet/agnostic/common/vp/hal/bufferMgr/vp_allocator.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,12 @@ MOS_STATUS VpAllocator::DestroySurface(MOS_SURFACE *surface, MOS_GFXRES_FREE_FLA
164164
{
165165
VP_FUNC_CALL();
166166
VP_PUBLIC_CHK_NULL_RETURN(m_allocator);
167-
168-
return m_allocator->DestroySurface(surface, flags);
167+
MOS_GFXRES_FREE_FLAGS resFreeFlags = {0};
168+
if (IsSyncFreeNeededForMMCSurface(surface))
169+
{
170+
resFreeFlags.SynchronousDestroy = 1;
171+
}
172+
return m_allocator->DestroySurface(surface, resFreeFlags);
169173
}
170174

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

0 commit comments

Comments
 (0)