i965: Drop global bufmgr lock from brw_bo_map_* functions.
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 30 Jun 2017 21:21:54 +0000 (14:21 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 30 Jun 2017 22:54:57 +0000 (15:54 -0700)
commit314647c4c206917ec01b72d9f9adc2b6cbdef6b7
treec2e3d8cc95e415f587712c76d28078812ee96abc
parentbca92849b92db3623cde91392be4efafeaa8d914
i965: Drop global bufmgr lock from brw_bo_map_* functions.

After removing the unusuable debugging code in the previous commit, we
can also entirely remove the global mutex around mapping the buffer for
the first time and replace it with a single atomic operation to update
the cache once we retrieve the mmap.

v2 (Ken): Split out from Chris's original commit.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_bufmgr.c