[Mesa-dev] [PATCH] i965/bufmgr: Set bo->idle after waiting.

Kenneth Graunke kenneth at whitecape.org
Thu Aug 3 01:06:05 UTC 2017


After a successful wait, we know the buffer ought to be idle.
---
 src/mesa/drivers/dri/i965/brw_bufmgr.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c
index f70365eba2a..1df812a711a 100644
--- a/src/mesa/drivers/dri/i965/brw_bufmgr.c
+++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c
@@ -1017,6 +1017,8 @@ brw_bo_wait(struct brw_bo *bo, int64_t timeout_ns)
    if (ret == -1)
       return -errno;
 
+   bo->idle = true;
+
    return ret;
 }
 
-- 
2.13.4



More information about the mesa-dev mailing list