diff options
author | Eric Anholt <[email protected]> | 2017-11-21 15:27:20 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2017-11-22 10:56:31 -0800 |
commit | ad1521d7088b7e9e7f9bad474419924bfabc064e (patch) | |
tree | 4dc4e4bea06f7ec6fa3a339d76554a743337e051 | |
parent | 1214c2ea2a200e9d2ff814a7b106d2314a03f048 (diff) |
broadcom/vc5: Don't increment primitive queries while they're paused.
Fixes ext_transform_feedback-generatemipmap prims_generated
-rw-r--r-- | src/gallium/drivers/vc5/vc5_draw.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc5/vc5_draw.c b/src/gallium/drivers/vc5/vc5_draw.c index c4f73f65dc4..6ca6966f713 100644 --- a/src/gallium/drivers/vc5/vc5_draw.c +++ b/src/gallium/drivers/vc5/vc5_draw.c @@ -279,8 +279,10 @@ vc5_tf_statistics_record(struct vc5_context *vc5, const struct pipe_draw_info *info, bool prim_tf) { - uint32_t prims = u_prims_for_vertices(info->mode, info->count); + if (!vc5->active_queries) + return; + uint32_t prims = u_prims_for_vertices(info->mode, info->count); vc5->prims_generated += prims; if (prim_tf) { |