diff options
author | Nicolai Hähnle <[email protected]> | 2016-04-20 09:22:48 -0500 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-04-21 22:32:50 -0500 |
commit | 32214e0c6837a24ad82152e9971baa3926992498 (patch) | |
tree | 8a455e6552f76440dd71d85c0e5381a6526428fc /src/gallium/drivers/nouveau/nv30 | |
parent | 6a0d036483caf87d43ebe2edd1905873446c9589 (diff) |
gallium: add bool return to pipe_context::end_query
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau/nv30')
-rw-r--r-- | src/gallium/drivers/nouveau/nv30/nv30_query.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_query.c b/src/gallium/drivers/nouveau/nv30/nv30_query.c index cb53a3663e5..aa9a12fe3bd 100644 --- a/src/gallium/drivers/nouveau/nv30/nv30_query.c +++ b/src/gallium/drivers/nouveau/nv30/nv30_query.c @@ -175,7 +175,7 @@ nv30_query_begin(struct pipe_context *pipe, struct pipe_query *pq) return true; } -static void +static bool nv30_query_end(struct pipe_context *pipe, struct pipe_query *pq) { struct nv30_context *nv30 = nv30_context(pipe); @@ -194,6 +194,7 @@ nv30_query_end(struct pipe_context *pipe, struct pipe_query *pq) PUSH_DATA (push, 0); } PUSH_KICK (push); + return true; } static boolean |