Skip to content

Commit a233941

Browse files
lixin5xintel-mediadev
authored andcommitted
[CP] Fix AuxTable ref count Leak
If no bo used in this submission no need to map auxtable, auxtable bo ref count will leak if we map here.
1 parent 8b4532a commit a233941

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media_softlet/linux/common/os/mos_gpucontext_specific_next.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,7 @@ MOS_STATUS GpuContextSpecificNext::MapResourcesToAuxTable(mos_linux_bo *cmd_bo)
12151215
MOS_OS_CHK_NULL_RETURN(osCtx);
12161216

12171217
AuxTableMgr *auxTableMgr = osCtx->GetAuxTableMgr();
1218-
if (auxTableMgr)
1218+
if (auxTableMgr && m_currentNumPatchLocations > 0)
12191219
{
12201220
// Map compress allocations to aux table if it is not mapped.
12211221
for (uint32_t i = 0; i < m_numAllocations; i++)

0 commit comments

Comments
 (0)