i965: Track when a bo is shared with an external client
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 19 Jun 2017 10:55:00 +0000 (11:55 +0100)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 10 Jul 2017 22:55:30 +0000 (15:55 -0700)
commitb532e3b4a2ce503224f2bf0e511812860a6c609f
treed4dfd7401d1b16acd4b173c9bed295bd314b3776
parentc2c37f5185ef80a770a9614f0317ad91b7672450
i965: Track when a bo is shared with an external client

If the buffer is being shared with an external client, our own state
tracking may be stale and in some cases we may wish to double check with
the kernel/hw state. At the moment, this is synonymous with not being
reusable, but the semantics between reusable and external are quite
different and we will have more examples of non-reusable buffers in the
near future.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_bufmgr.c
src/mesa/drivers/dri/i965/brw_bufmgr.h