From: Roland Scheidegger Date: Wed, 28 May 2014 23:22:19 +0000 (+0200) Subject: softpipe: honor the render_condition_enable bit in blits. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=98d8ba2776a3be7d6f297a301f545694a366d83d;p=mesa.git softpipe: honor the render_condition_enable bit in blits. Reviewed-by: Brian Paul Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/drivers/softpipe/sp_surface.c b/src/gallium/drivers/softpipe/sp_surface.c index 102e8e82f66..768e8989b20 100644 --- a/src/gallium/drivers/softpipe/sp_surface.c +++ b/src/gallium/drivers/softpipe/sp_surface.c @@ -36,6 +36,9 @@ static void sp_blit(struct pipe_context *pipe, { struct softpipe_context *sp = softpipe_context(pipe); + if (info->render_condition_enable && !softpipe_check_render_cond(sp)) + return; + if (info->src.resource->nr_samples > 1 && info->dst.resource->nr_samples <= 1 && !util_format_is_depth_or_stencil(info->src.resource->format) &&