gallium/util: check for window cliprects in util_can_blit_via_copy_region()
authorBrian Paul <brianp@vmware.com>
Fri, 1 Jul 2016 00:15:19 +0000 (18:15 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 1 Jul 2016 00:19:09 +0000 (18:19 -0600)
We can't blit with resource_copy_region() if there are window clip rects.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_surface.c

index e0234f8d15ed8c9fcf30f4a9532faf6e24396177..a9ed006ea014e8b0d4ccb1b485451cb27304548a 100644 (file)
@@ -723,6 +723,7 @@ util_can_blit_via_copy_region(const struct pipe_blit_info *blit,
    if ((blit->mask & mask) != mask ||
        blit->filter != PIPE_TEX_FILTER_NEAREST ||
        blit->scissor_enable ||
+       blit->num_window_rectangles > 0 ||
        blit->alpha_blend) {
       return FALSE;
    }