aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_query.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2020-03-27 16:46:22 -0700
committerMarge Bot <[email protected]>2020-03-30 21:35:21 +0000
commitb7fe793869e1f9b0a8013c5c5e161122e326540e (patch)
tree49e742bfd779a6cdf3db82faeb8562934e3bfbb9 /src/gallium/drivers/freedreno/freedreno_query.c
parent1ef9658906655edb6b2beaf2951a9dc81d93b827 (diff)
freedreno: Remove always-true return from per-gen begin_query.
You should do failure-prone allocation in create_query, not begin, anyway. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4356>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_query.c')
-rw-r--r--src/gallium/drivers/freedreno/freedreno_query.c7
1 files changed, 3 insertions, 4 deletions
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