gallium: add bool return to pipe_context::end_query
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 20 Apr 2016 14:22:48 +0000 (09:22 -0500)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 22 Apr 2016 03:32:50 +0000 (22:32 -0500)
commit32214e0c6837a24ad82152e9971baa3926992498
tree8a455e6552f76440dd71d85c0e5381a6526428fc
parent6a0d036483caf87d43ebe2edd1905873446c9589
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>
19 files changed:
src/gallium/drivers/ddebug/dd_context.c
src/gallium/drivers/freedreno/freedreno_query.c
src/gallium/drivers/i915/i915_query.c
src/gallium/drivers/ilo/ilo_query.c
src/gallium/drivers/llvmpipe/lp_query.c
src/gallium/drivers/noop/noop_pipe.c
src/gallium/drivers/nouveau/nv30/nv30_query.c
src/gallium/drivers/nouveau/nv50/nv50_query.c
src/gallium/drivers/nouveau/nvc0/nvc0_query.c
src/gallium/drivers/r300/r300_query.c
src/gallium/drivers/radeon/r600_query.c
src/gallium/drivers/rbug/rbug_context.c
src/gallium/drivers/softpipe/sp_query.c
src/gallium/drivers/svga/svga_pipe_query.c
src/gallium/drivers/swr/swr_query.cpp
src/gallium/drivers/trace/tr_context.c
src/gallium/drivers/vc4/vc4_query.c
src/gallium/drivers/virgl/virgl_query.c
src/gallium/include/pipe/p_context.h