diff --git a/src/gallium/drivers/iris/iris_bufmgr.c b/src/gallium/drivers/iris/iris_bufmgr.c index 4732f803252..9ffef5b7ec3 100644 --- a/src/gallium/drivers/iris/iris_bufmgr.c +++ b/src/gallium/drivers/iris/iris_bufmgr.c @@ -1394,7 +1394,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