diff options
author | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-04-20 09:22:48 -0500 |
---|---|---|
committer | Nicolai Hähnle <nicolai.haehnle@amd.com> | 2016-04-21 22:32:50 -0500 |
commit | 32214e0c6837a24ad82152e9971baa3926992498 (patch) | |
tree | 8a455e6552f76440dd71d85c0e5381a6526428fc /src/gallium/drivers/trace | |
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 <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/drivers/trace')
-rw-r--r-- | src/gallium/drivers/trace/tr_context.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gallium/drivers/trace/tr_context.c b/src/gallium/drivers/trace/tr_context.c index b575f2cdb3..7ed4f4988d 100644 --- a/src/gallium/drivers/trace/tr_context.c +++ b/src/gallium/drivers/trace/tr_context.c @@ -218,12 +218,13 @@ trace_context_begin_query(struct pipe_context *_pipe, } -static void +static bool trace_context_end_query(struct pipe_context *_pipe, struct pipe_query *query) { struct trace_context *tr_ctx = trace_context(_pipe); struct pipe_context *pipe = tr_ctx->pipe; + bool ret; query = trace_query_unwrap(query); @@ -232,9 +233,10 @@ trace_context_end_query(struct pipe_context *_pipe, trace_dump_arg(ptr, pipe); trace_dump_arg(ptr, query); - pipe->end_query(pipe, query); + ret = pipe->end_query(pipe, query); trace_dump_call_end(); + return ret; } |