When created, buffers are idle, so mark them as such to save an early ioctl or mistaken assuming the fresh buffer is busy.
Signed-off-by: Chris Wilson <[email protected]> Cc: Kenneth Graunke <[email protected]> Cc: Matt Turner <[email protected]> --- 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 2ee57e2a0d..67c15878d0 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.11.0 _______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
