softpipe: honor the render_condition_enable bit in blits.
authorRoland Scheidegger <sroland@vmware.com>
Wed, 28 May 2014 23:22:19 +0000 (01:22 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Sat, 31 May 2014 20:05:14 +0000 (22:05 +0200)
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/drivers/softpipe/sp_surface.c

index 102e8e8..768e898 100644 (file)
@@ -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) &&