vc4: Disable RCL blitting when scissors are enabled.
authorEric Anholt <eric@anholt.net>
Fri, 4 Dec 2015 21:15:01 +0000 (13:15 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 5 Dec 2015 21:12:27 +0000 (13:12 -0800)
We could potentially handle scissored blits when they're tile aligned, but
it doesn't seem worth it.  If you're doing a scissored blit, you're
probably a testcase.

Fixes piglit's fbo-scissor-blit fbo

src/gallium/drivers/vc4/vc4_blit.c

index d5839c581991b7e0aa0e8bb119bc1a7b50860b57..f58cfd3e552b7601fa9202254877ca5a8bb2e7b9 100644 (file)
@@ -57,6 +57,9 @@ vc4_tile_blit(struct pipe_context *pctx, const struct pipe_blit_info *info)
         if (util_format_is_depth_or_stencil(info->dst.resource->format))
                 return false;
 
+        if (info->scissor_enable)
+                return false;
+
         if ((info->mask & PIPE_MASK_RGBA) == 0)
                 return false;