Skip to content

Commit aaf6531

Browse files
JexuSherry-Lin
authored andcommitted
[Decode] Wait rendering complete only when bo busy that still rendering
Fix intel/libva-utils#282
1 parent 0bfe22f commit aaf6531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

media_driver/linux/common/os/i915/mos_bufmgr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1523,7 +1523,7 @@ mos_gem_bo_free(struct mos_linux_bo *bo)
15231523
drm_munmap(bo_gem->mem_wc_virtual, bo_gem->bo.size);
15241524
}
15251525

1526-
if(bufmgr_gem->bufmgr.bo_wait_rendering)
1526+
if(bufmgr_gem->bufmgr.bo_wait_rendering && mos_gem_bo_busy(bo))
15271527
{
15281528
bufmgr_gem->bufmgr.bo_wait_rendering(bo);
15291529
}

0 commit comments

Comments
 (0)