etnaviv: rework wait/flush logic
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Wed, 31 Jul 2019 10:38:53 +0000 (12:38 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sun, 5 Apr 2020 18:01:43 +0000 (18:01 +0000)
commitf47b4eddd93ca538d2ebc90666955b7e2ee06494
treed77fcc6625d57e9420e9b29e688efd62288cc23a
parentd1697fef1a92c9be74ff7447e1e16a9e8e4314f1
etnaviv: rework wait/flush logic

Saves us from doing an extra flush in !wait case and seems more
logical now. Also evaluate etna_bo_cpu_prep(..) retun value.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/1530>
src/gallium/drivers/etnaviv/etnaviv_query_acc.c