From: Chris Wilson Date: Thu, 8 Jun 2017 23:35:09 +0000 (+0100) Subject: i965: Mark freshly allocate bo as idle X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=commitdiff_plain;h=05d5caffc402f532502b7b8e301a80ef140b7317 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 Cc: Kenneth Graunke Cc: Matt Turner Reviewed-by: Kenneth Graunke --- 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;