[Mesa-dev] [PATCH 2/3] llvmpipe: honor the render_condition_enable bit in blits.

sroland at vmware.com sroland at vmware.com
Wed May 28 16:23:27 PDT 2014


From: Roland Scheidegger <sroland at vmware.com>

This fixes piglit nv_conditional_render-blitframebuffer.
---
 src/gallium/drivers/llvmpipe/lp_surface.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/llvmpipe/lp_surface.c b/src/gallium/drivers/llvmpipe/lp_surface.c
index ac8ee26..09ca39d 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) &&
-- 
1.9.1


More information about the mesa-dev mailing list