Mesa (master): i965: Mark freshly allocate bo as idle
Chris Wilson
ickle at kemper.freedesktop.org
Fri Jun 16 15:28:24 UTC 2017
Module: Mesa
Branch: master
Commit: 05d5caffc402f532502b7b8e301a80ef140b7317
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=05d5caffc402f532502b7b8e301a80ef140b7317
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Fri Jun 9 00:35:09 2017 +0100
i965: Mark freshly allocate bo as idle
When created, buffers are idle, so mark them as such to save an early
ioctl or mistakenly 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>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
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 42cc0c28f3..6cb91f9a23 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;
More information about the mesa-commit
mailing list