etnaviv: Don't flush on transfer when UNSYNCHRONIZED
authorWladimir J. van der Laan <laanwj@gmail.com>
Sat, 28 Oct 2017 14:01:49 +0000 (16:01 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 2 Nov 2017 10:00:26 +0000 (11:00 +0100)
commitbc71c318426b2939aae839a356f1ab4aef1e5ada
tree5e9738cf69e77ccf7799b5b8786bf85a082c4463
parent8fbd82f464f26a56167f7962174b2b69756a105a
etnaviv: Don't flush on transfer when UNSYNCHRONIZED

Structure code to only flush when we will potentially call cpu_prep. This
prevents spurious flushes in applications that heavily rely on u_uploader.

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