gallium: make pipe_context::begin_query return a boolean
[mesa.git] / src / gallium / drivers / freedreno / freedreno_query_hw.c
index b29f9d409ced07411dcd595b8fe82ca36943f3dd..027fdc9de23936793a7a0fb9c4d27f7df1a70226 100644 (file)
@@ -131,12 +131,12 @@ fd_hw_destroy_query(struct fd_context *ctx, struct fd_query *q)
        free(hq);
 }
 
-static void
+static boolean
 fd_hw_begin_query(struct fd_context *ctx, struct fd_query *q)
 {
        struct fd_hw_query *hq = fd_hw_query(q);
        if (q->active)
-               return;
+               return false;
 
        /* begin_query() should clear previous results: */
        destroy_periods(ctx, &hq->periods);
@@ -149,6 +149,7 @@ fd_hw_begin_query(struct fd_context *ctx, struct fd_query *q)
        /* add to active list: */
        list_del(&hq->list);
        list_addtail(&hq->list, &ctx->active_queries);
+   return true;
 }
 
 static void