Mesa (master): broadcom/vc5: Don't increment primitive queries while they' re paused.
Eric Anholt
anholt at kemper.freedesktop.org
Wed Nov 22 19:00:11 UTC 2017
Module: Mesa
Branch: master
Commit: ad1521d7088b7e9e7f9bad474419924bfabc064e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad1521d7088b7e9e7f9bad474419924bfabc064e
Author: Eric Anholt <eric at anholt.net>
Date: Tue Nov 21 15:27:20 2017 -0800
broadcom/vc5: Don't increment primitive queries while they're paused.
Fixes ext_transform_feedback-generatemipmap prims_generated
---
src/gallium/drivers/vc5/vc5_draw.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/vc5/vc5_draw.c b/src/gallium/drivers/vc5/vc5_draw.c
index c4f73f65dc..6ca6966f71 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) {
More information about the mesa-commit
mailing list