[Mesa-dev] [PATCH 1/9] i965: Mark freshly allocate bo as idle
kenneth at whitecape.org
Wed Jun 14 21:38:41 UTC 2017
On Friday, June 9, 2017 6:01:32 AM PDT Chris Wilson wrote:
> 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 <chris at chris-wilson.co.uk>
> Cc: Kenneth Graunke <kenneth at whitecape.org>
> Cc: Matt Turner <mattst88 at gmail.com>
> 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;
> create.size = bo_size;
I noticed the other day that we weren't using bo->idle anymore. Too
much hacking and slashing on my part, I guess...thanks for fixing it.
This patch is:
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: This is a digitally signed message part.
More information about the mesa-dev