etnaviv: change begin_query(..) to a void function
We always return true. Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4456>
This commit is contained in:

committed by
Marge Bot

parent
7a9cbb2b61
commit
7cb98e02e4
@@ -60,15 +60,14 @@ static bool
|
||||
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
|
||||
|
@@ -35,7 +35,7 @@ struct etna_query;
|
||||
|
||||
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);
|
||||
|
@@ -78,7 +78,7 @@ realloc_query_bo(struct etna_context *ctx, struct etna_acc_query *aq)
|
||||
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);
|
||||
@@ -93,8 +93,6 @@ etna_acc_begin_query(struct etna_context *ctx, struct etna_query *q)
|
||||
/* add to active list */
|
||||
assert(list_is_empty(&aq->node));
|
||||
list_addtail(&aq->node, &ctx->active_acc_queries);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@@ -56,14 +56,12 @@ read_counter(struct etna_context *ctx, unsigned type)
|
||||
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
|
||||
|
Reference in New Issue
Block a user