summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/svga/svga_pipe_blit.c
diff options
context:
space:
mode:
authorNeha Bhende <bhenden@vmware.com>2016-09-28 10:48:45 -0700
committerBrian Paul <brianp@vmware.com>2016-11-03 14:29:22 -0600
commit03e1b7cacdf3b595262e50679a83544549c61b3d (patch)
treea55864eeec4f134740cdcdbefcd8326577ad41c1 /src/gallium/drivers/svga/svga_pipe_blit.c
parent2cff6f4512a174a23ee6c1d2583c22e24ee1a240 (diff)
svga: Add render_condition boolean flag in struct svga_context
set render_condition flag when driver performs conditional rendering. Blit using DXPredCopyRegion command gets affected by conditional rendering so We should check this flag while performing blit operation Tested with piglit tests. v2: As per Charmaine's comment, setting render_condition flag if svga_query is valid. Tested with pigit tests. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Charmaine Lee <charmainel@vmware.com>
Diffstat (limited to 'src/gallium/drivers/svga/svga_pipe_blit.c')
-rw-r--r--src/gallium/drivers/svga/svga_pipe_blit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_pipe_blit.c b/src/gallium/drivers/svga/svga_pipe_blit.c
index 75576f2d72c..054e3f5a1c0 100644
--- a/src/gallium/drivers/svga/svga_pipe_blit.c
+++ b/src/gallium/drivers/svga/svga_pipe_blit.c
@@ -265,7 +265,8 @@ can_blit_via_copy_region_vgpu10(struct svga_context *svga,
blit_info->mask != (PIPE_MASK_ZS))
return false;
- if (blit_info->alpha_blend || blit_info->render_condition_enable ||
+ if (blit_info->alpha_blend ||
+ (svga->render_condition && blit_info->render_condition_enable) ||
blit_info->scissor_enable)
return false;