projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82db591
)
i965: Mark freshly allocate bo as idle
author
Chris Wilson
<chris@chris-wilson.co.uk>
Thu, 8 Jun 2017 23:35:09 +0000
(
00:35
+0100)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Fri, 16 Jun 2017 15:20:28 +0000
(16:20 +0100)
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@chris-wilson.co.uk>
Cc: Kenneth Graunke <kenneth@whitecape.org>
Cc: Matt Turner <mattst88@gmail.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_bufmgr.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_bufmgr.c
b/src/mesa/drivers/dri/i965/brw_bufmgr.c
index 42cc0c28f3bd95de03ca13ea82fc2156af22b718..6cb91f9a23a3580faa88a17852e787635e03f5ea 100644
(file)
--- 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;