Skip to content

Commit

Permalink
Revert "INTERNAL: Revert 530ae32:iris:Fix to release BO immediately i…
Browse files Browse the repository at this point in the history
…f not busy"

This reverts commit de912b6.
This can avoid CTS incorrectly report "memory leak" if release BO immediately

Tracked-On: OAM-122043
Signed-off-by: Lin, Shenghua <[email protected]>
  • Loading branch information
ShenghuaLinINTEL authored and sysopenci committed Jul 9, 2024
1 parent 6224400 commit a65b23c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gallium/drivers/iris/iris_bufmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ bo_free(struct iris_bo *bo)
if (!bo->real.userptr && bo->real.map)
bo_unmap(bo);

if (bo->idle) {
if (bo->idle || !iris_bo_busy(bo)) {
bo_close(bo);
} else {
/* Defer closing the GEM BO and returning the VMA for reuse until the
Expand Down

0 comments on commit a65b23c

Please sign in to comment.