zink: optimize transfer_map for resources with pending reads/writes
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Fri, 26 Jun 2020 19:16:17 +0000 (15:16 -0400)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 14 Oct 2020 13:20:32 +0000 (09:20 -0400)
commite3ed624072e28d06b5afa198161afbbe3aadcaf2
tree3ab808a5df37fb631cbc89f0379d3c3dc4725fe8
parentc6687eef2dcac3399adb26c4deae9b62d04d88cf
zink: optimize transfer_map for resources with pending reads/writes

we don't need to stall here if we know that we're not about to have any io
conflicts in the buffer

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