zink: hammer in an explicit wait when retrieving buffer contents for reading
authorErik Faye-Lund <kusmabite@gmail.com>
Wed, 20 May 2020 13:59:26 +0000 (09:59 -0400)
committerMarge Bot <eric+marge@anholt.net>
Fri, 22 May 2020 13:24:10 +0000 (13:24 +0000)
commit0d2ec80dea8adf3089f187f8c0e9bdbcb135b4f2
tree6e8dbbdd485822195ab2a626471969a2c4c67065
parentaf2d99353555715afe6e6b6ba5158a2cc0d6b015
zink: hammer in an explicit wait when retrieving buffer contents for reading

this ensures that the buffer returned is synchronized as expected, though
it incurs a significant performance hit and will hopefully be improved in future
patches

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5120>
src/gallium/drivers/zink/zink_resource.c