From b7fe793869e1f9b0a8013c5c5e161122e326540e Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 27 Mar 2020 16:46:22 -0700 Subject: freedreno: Remove always-true return from per-gen begin_query. You should do failure-prone allocation in create_query, not begin, anyway. Part-of: --- src/gallium/drivers/freedreno/freedreno_query.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/gallium/drivers/freedreno/freedreno_query.c') diff --git a/src/gallium/drivers/freedreno/freedreno_query.c b/src/gallium/drivers/freedreno/freedreno_query.c index 852c828fb06..6f99abd85ab 100644 --- a/src/gallium/drivers/freedreno/freedreno_query.c +++ b/src/gallium/drivers/freedreno/freedreno_query.c @@ -62,15 +62,14 @@ static bool fd_begin_query(struct pipe_context *pctx, struct pipe_query *pq) { struct fd_query *q = fd_query(pq); - bool ret; if (q->active) return false; - ret = q->funcs->begin_query(fd_context(pctx), q); - q->active = ret; + q->funcs->begin_query(fd_context(pctx), q); + q->active = true; - return ret; + return true; } static bool -- cgit v1.2.3