aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/freedreno/freedreno_query.c
diff options
context:
space:
mode:
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