etnaviv: honor PIPE_TRANSFER_UNSYNCHRONIZED flag
authorLucas Stach <l.stach@pengutronix.de>
Thu, 18 May 2017 16:20:12 +0000 (18:20 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 8 Jun 2017 16:29:36 +0000 (18:29 +0200)
commitc3b2c7a75f1ef6306d0218d92564319d22cfc8fe
treefd5519ca3dd83ae23662ebe4962b80dddcb15bed
parenta276c32a08bd41ceb8fd9b604ba9ac8229d59b64
etnaviv: honor PIPE_TRANSFER_UNSYNCHRONIZED flag

This gets rid of quite a bit of CPU/GPU sync on frequent vertex buffer
uploads and I haven't seen any of the issues mentioned in the comment,
so this one seems stale.

Ignore the flag if there exists a temporary resource, as those ones are
never busy.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_transfer.c