llvmpipe: honor the render_condition_enable bit in blits.
authorRoland Scheidegger <sroland@vmware.com>
Wed, 28 May 2014 23:22:11 +0000 (01:22 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 31 May 2014 20:05:14 +0000 (22:05 +0200)
This fixes piglit nv_conditional_render-blitframebuffer.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/llvmpipe/lp_surface.c

index ac8ee26f543c08787e9cda3f26743badbb8e5fcc..09ca39dd357a8a890aed75e967fbc2731ad2b3e7 100644 (file)
@@ -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) &&