i965/bufmgr: Set bo->idle after waiting.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 3 Aug 2017 01:06:05 +0000 (18:06 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 8 Aug 2017 23:45:15 +0000 (16:45 -0700)
commita1c9a6da18b3fdb094804d1fa2529024261ed265
tree5447e4dabd0ef773765a9748824545657acbdd79
parent58a4fc2b00e7aa2ffb9f30159150ab7587a8cfce
i965/bufmgr: Set bo->idle after waiting.

After a successful wait, we know the buffer ought to be idle.

Chris points out that: "The only caveat here is that bo is global, and
we have a very unlikely (and probably unnoticeable) race condition with
multiple contexts."

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
src/mesa/drivers/dri/i965/brw_bufmgr.c