OSDN Git Service

i965: Emit a performance warning on conditional rendering.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 4 Aug 2014 06:54:22 +0000 (23:54 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 8 Aug 2014 07:52:10 +0000 (00:52 -0700)
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 <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_draw.c

index 4dae7d3..412c360 100644 (file)
@@ -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;