[Mesa-dev] [PATCH 1/9] i965: Mark freshly allocate bo as idle
Chris Wilson
chris at chris-wilson.co.uk
Fri Jun 9 13:01:32 UTC 2017
When created, buffers are idle, so mark them as such to save an early
ioctl or mistaken assuming the fresh buffer is busy.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Kenneth Graunke <kenneth at whitecape.org>
Cc: Matt Turner <mattst88 at gmail.com>
---
src/mesa/drivers/dri/i965/brw_bufmgr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c
index 2ee57e2a0d..67c15878d0 100644
--- a/src/mesa/drivers/dri/i965/brw_bufmgr.c
+++ b/src/mesa/drivers/dri/i965/brw_bufmgr.c
@@ -324,6 +324,7 @@ retry:
goto err;
bo->size = bo_size;
+ bo->idle = true;
memclear(create);
create.size = bo_size;
--
2.11.0
More information about the mesa-dev
mailing list