diff options
author | Chris Wilson <[email protected]> | 2017-06-09 00:35:09 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2017-06-16 16:20:28 +0100 |
commit | 05d5caffc402f532502b7b8e301a80ef140b7317 (patch) | |
tree | 8039e052c2f6aebac5777c5e69c0dc95c80d2d62 /src/mesa | |
parent | 82db591155ca2f79b522deaa5cd582fa0cf9461f (diff) |
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 <[email protected]>
Cc: Kenneth Graunke <[email protected]>
Cc: Matt Turner <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_bufmgr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c b/src/mesa/drivers/dri/i965/brw_bufmgr.c index 42cc0c28f3b..6cb91f9a23a 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; |