We always return true.
Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4456>
etna_begin_query(struct pipe_context *pctx, struct pipe_query *pq)
{
struct etna_query *q = etna_query(pq);
- bool ret;
if (q->active)
return false;
- ret = q->funcs->begin_query(etna_context(pctx), q);
- q->active = ret;
+ q->funcs->begin_query(etna_context(pctx), q);
+ q->active = true;
- return ret;
+ return true;
}
static bool
struct etna_query_funcs {
void (*destroy_query)(struct etna_context *ctx, struct etna_query *q);
- bool (*begin_query)(struct etna_context *ctx, struct etna_query *q);
+ void (*begin_query)(struct etna_context *ctx, struct etna_query *q);
void (*end_query)(struct etna_context *ctx, struct etna_query *q);
bool (*get_query_result)(struct etna_context *ctx, struct etna_query *q,
bool wait, union pipe_query_result *result);
etna_bo_cpu_fini(rsc->bo);
}
-static bool
+static void
etna_acc_begin_query(struct etna_context *ctx, struct etna_query *q)
{
struct etna_acc_query *aq = etna_acc_query(q);
/* add to active list */
assert(list_is_empty(&aq->node));
list_addtail(&aq->node, &ctx->active_acc_queries);
-
- return true;
}
static void
return 0;
}
-static bool
+static void
etna_sw_begin_query(struct etna_context *ctx, struct etna_query *q)
{
struct etna_sw_query *sq = etna_sw_query(q);
sq->begin_value = read_counter(ctx, q->type);
-
- return true;
}
static void