From 32214e0c6837a24ad82152e9971baa3926992498 Mon Sep 17 00:00:00 2001 From: Nicolai Hähnle Date: Wed, 20 Apr 2016 09:22:48 -0500 Subject: gallium: add bool return to pipe_context::end_query MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Even when begin_query succeeds, there can still be failures in query handling. For example for radeon, additional buffers may have to be allocated when queries span multiple command buffers. Reviewed-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/gallium/drivers/freedreno/freedreno_query.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (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 a9427058579..18e0c793c51 100644 --- a/src/gallium/drivers/freedreno/freedreno_query.c +++ b/src/gallium/drivers/freedreno/freedreno_query.c @@ -66,11 +66,12 @@ fd_begin_query(struct pipe_context *pctx, struct pipe_query *pq) return q->funcs->begin_query(fd_context(pctx), q); } -static void +static bool fd_end_query(struct pipe_context *pctx, struct pipe_query *pq) { struct fd_query *q = fd_query(pq); q->funcs->end_query(fd_context(pctx), q); + return true; } static boolean -- cgit v1.2.3