Saves us from calling util_query_clear_result(..) in every query
type implementation.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
*/
#include "pipe/p_screen.h"
+#include "util/u_inlines.h"
#include "etnaviv_context.h"
#include "etnaviv_query.h"
if (q->active)
return false;
+ util_query_clear_result(result, q->type);
+
return q->funcs->get_query_result(etna_context(pctx), q, wait, result);
}
#include "os/os_time.h"
#include "pipe/p_state.h"
-#include "util/u_inlines.h"
#include "util/u_memory.h"
#include "util/u_string.h"
{
struct etna_sw_query *sq = etna_sw_query(q);
- util_query_clear_result(result, q->type);
result->u64 = sq->end_value - sq->begin_value;
return true;