diff options
author | Christian Gmeiner <[email protected]> | 2020-04-05 21:33:26 +0200 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-10 12:42:24 +0000 |
commit | 7cb98e02e4e072389986b1f9461e76415e14531c (patch) | |
tree | e13ca1ae882df1f233004d8ed68095ece6cede3a /src/gallium/drivers/etnaviv/etnaviv_query.c | |
parent | 7a9cbb2b6176b723d3ee54f7b4f6c885163da616 (diff) |
etnaviv: change begin_query(..) to a void function
We always return true.
Signed-off-by: Christian Gmeiner <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4456>
Diffstat (limited to 'src/gallium/drivers/etnaviv/etnaviv_query.c')
-rw-r--r-- | src/gallium/drivers/etnaviv/etnaviv_query.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_query.c b/src/gallium/drivers/etnaviv/etnaviv_query.c index 4168629beaa..ee936a6e616 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_query.c +++ b/src/gallium/drivers/etnaviv/etnaviv_query.c @@ -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 |