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 <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
This commit is contained in:
Kenneth Graunke 2014-08-03 23:54:22 -07:00
parent e9a9d441f0
commit ae95b9dd9b
1 changed files with 5 additions and 0 deletions

View 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;