etnaviv: rework etna_acc_sample_provider
authorChristian Gmeiner <christian.gmeiner@gmail.com>
Fri, 26 Jul 2019 08:18:44 +0000 (10:18 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sun, 5 Apr 2020 18:01:43 +0000 (18:01 +0000)
commitf2c4892512732bbf08951a188e4a5774951d6f86
tree4f956561b932d403a014139df479a02ce75b62c2
parent46096a4cb40885b202efeb1c3986a54548538a49
etnaviv: rework etna_acc_sample_provider

Simplify the interface a sampler provider needs to implement. The start(..)
and stop(..) functions got called by resume(..) and suspend(..) so lets
get rid of start(..) and stop(..). Also the way we count and use samples
is much easier to follow now.

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
src/gallium/drivers/etnaviv/etnaviv_query_acc.h