freedreno: Don't count primitives for patches
authorKristian H. Kristensen <hoegsberg@google.com>
Tue, 22 Oct 2019 23:24:26 +0000 (16:24 -0700)
committerKristian H. Kristensen <hoegsberg@google.com>
Fri, 8 Nov 2019 00:36:47 +0000 (16:36 -0800)
commitd6209a50bb13a40c0823f4c53eb1566328ba6630
treece2dc98d20435e83ca8eab2471dafb5daa0938bb
parentfe450ef4cf672f4f66ea1966cc96bc706b864357
freedreno: Don't count primitives for patches

The gallium helper doesn't like patches and we can't determine how
many primitives it gets tessellated into anyway.  On gens where we
have tessellation, we get the prim count from a HW counter so just
skip counting on the CPU.

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/freedreno_draw.c