[Mesa-dev] [PATCH] gallium/util: check for window cliprects in util_can_blit_via_copy_region()
Roland Scheidegger
sroland at vmware.com
Fri Jul 1 00:17:28 UTC 2016
Am 01.07.2016 um 02:16 schrieb Brian Paul:
> We can't blit with resource_copy_region() if there are window clip rects.
> ---
> src/gallium/auxiliary/util/u_surface.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/auxiliary/util/u_surface.c b/src/gallium/auxiliary/util/u_surface.c
> index e0234f8..a9ed006 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;
> }
>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
More information about the mesa-dev
mailing list