diff options
author | Brian Paul <[email protected]> | 2016-06-30 18:15:19 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-06-30 18:19:09 -0600 |
commit | c823ff8dfbd22d6c50df8b6a7fd5abc299f90776 (patch) | |
tree | 6b03f05fbeb0bd2268309614c3142f88ef237aa1 /src/gallium/auxiliary/util | |
parent | d8d6091a846ac2a40a011d512d6d57f6c8442e6a (diff) |
gallium/util: check for window cliprects in util_can_blit_via_copy_region()
We can't blit with resource_copy_region() if there are window clip rects.
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/util')
-rw-r--r-- | src/gallium/auxiliary/util/u_surface.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/util/u_surface.c b/src/gallium/auxiliary/util/u_surface.c index e0234f8d15e..a9ed006ea01 100644 --- a/src/gallium/auxiliary/util/u_surface.c +++ b/src/gallium/auxiliary/util/u_surface.c @@ -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; } |