summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/etnaviv/etnaviv_query.c
diff options
context:
space:
mode:
authorChristian Gmeiner <[email protected]>2017-10-08 22:00:07 +0200
committerChristian Gmeiner <[email protected]>2017-10-09 22:19:47 +0200
commit148604fe758717c4668073c6a70f2c8467aea208 (patch)
tree2cf6f69954ab16bb354c326a8b1b12e89d7b5de1 /src/gallium/drivers/etnaviv/etnaviv_query.c
parentb22bacc6cfd17d785d12bb3f75094a7b8a0e3221 (diff)
etnaviv: call util_query_clear_result(..) in the generic layer
Saves us from calling util_query_clear_result(..) in every query type implementation. Signed-off-by: Christian Gmeiner <[email protected]> Reviewed-by: Wladimir J. van der Laan <[email protected]>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_query.c')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_query.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_query.c b/src/gallium/drivers/etnaviv/etnaviv_query.c
index 089a26e6fda..a416a7cb0f3 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_query.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_query.c
@@ -26,6 +26,7 @@
*/
#include "pipe/p_screen.h"
+#include "util/u_inlines.h"
#include "etnaviv_context.h"
#include "etnaviv_query.h"
@@ -89,6 +90,8 @@ etna_get_query_result(struct pipe_context *pctx, struct pipe_query *pq,
if (q->active)
return false;
+ util_query_clear_result(result, q->type);
+
return q->funcs->get_query_result(etna_context(pctx), q, wait, result);
}