From 05d5caffc402f532502b7b8e301a80ef140b7317 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 9 Jun 2017 00:35:09 +0100 Subject: [PATCH] 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 --- 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 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; -- 2.30.2