freedreno/a6xx: Fix primitive counters again
authorKristian H. Kristensen <hoegsberg@google.com>
Thu, 31 Oct 2019 00:18:48 +0000 (17:18 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Fri, 8 Nov 2019 00:36:22 +0000 (16:36 -0800)
commitb0b443dcab09a913e5fc2ea5a61d89e6ccbd4c35
tree1a10ed5e707a043644d2c787f36ef9c9c7c21171
parent835f8d1ba199fd99bdd9157a978bcf43b017ede1
freedreno/a6xx: Fix primitive counters again

We use one mechanism for (REG_A6XX_RBBM_PRIMCTR_8_LO)
PIPE_QUERY_PRIMITIVES_GENERATED, which counts all primitives that exit
the geometry pipeline, whether or not xfb is on.  Then for
PIPE_QUERY_PRIMITIVES_EMITTED, we use the CP_EVENT_WRITE subfunction
that writes out per-stream counts for generated and emitted, but only
when xfb is enabled.

Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
Acked-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a6xx/fd6_query.c