diff options
author | Kenneth Graunke <[email protected]> | 2014-08-03 23:54:22 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-08-08 00:52:10 -0700 |
commit | ae95b9dd9be56ad84a8a4ab5955f580c337259cb (patch) | |
tree | 7e92886fdbd655a9761e30dee44deb1d8440d55c | |
parent | e9a9d441f0b1a0293e0901d0f6b99a946e51f6f4 (diff) |
i965: Emit a performance warning on conditional rendering.
We have a CPU-side implementation of conditional rendering; it really
should be done on the GPU. It's not necessarily that hard, but nobody
has gotten to fixing it yet.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 4dae7d35b1c..412c3600320 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -539,6 +539,11 @@ void brw_draw_prims( struct gl_context *ctx, assert(unused_tfb_object == NULL); + if (ctx->Query.CondRenderQuery) { + perf_debug("Conditional rendering is implemented in software and may " + "stall. This should be fixed in the driver.\n"); + } + if (!_mesa_check_conditional_render(ctx)) return; |