aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/softpipe/sp_surface.c
diff options
context:
space:
mode:
authorRoland Scheidegger <[email protected]>2014-05-29 01:22:19 +0200
committerRoland Scheidegger <[email protected]>2014-05-31 22:05:14 +0200
commit98d8ba2776a3be7d6f297a301f545694a366d83d (patch)
treeafb001eb0b1c98f844f9d8f332cca3bbf9a76cfd /src/gallium/drivers/softpipe/sp_surface.c
parentc90b5884bd914da3529728df6f374e6adbf00d1e (diff)
softpipe: honor the render_condition_enable bit in blits.
Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_surface.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_surface.c3
1 files changed, 3 insertions, 0 deletions
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) &&