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 <ch...@chris-wilson.co.uk> > Cc: Kenneth Graunke <kenn...@whitecape.org> > Cc: Matt Turner <matts...@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; > > memclear(create); > 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 <kenn...@whitecape.org>
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev