From: Roland Scheidegger Date: Wed, 28 May 2014 23:22:11 +0000 (+0200) Subject: llvmpipe: honor the render_condition_enable bit in blits. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c90b5884bd914da3529728df6f374e6adbf00d1e;p=mesa.git llvmpipe: honor the render_condition_enable bit in blits. This fixes piglit nv_conditional_render-blitframebuffer. Reviewed-by: Brian Paul Reviewed-by: Jose Fonseca --- diff --git a/src/gallium/drivers/llvmpipe/lp_surface.c b/src/gallium/drivers/llvmpipe/lp_surface.c index ac8ee26f543..09ca39dd357 100644 --- a/src/gallium/drivers/llvmpipe/lp_surface.c +++ b/src/gallium/drivers/llvmpipe/lp_surface.c @@ -180,6 +180,9 @@ static void lp_blit(struct pipe_context *pipe, struct llvmpipe_context *lp = llvmpipe_context(pipe); struct pipe_blit_info info = *blit_info; + if (blit_info->render_condition_enable && !llvmpipe_check_render_cond(lp)) + return; + if (info.src.resource->nr_samples > 1 && info.dst.resource->nr_samples <= 1 && !util_format_is_depth_or_stencil(info.src.resource->format) &&