From: Kenneth Graunke Date: Tue, 24 Jul 2018 21:52:50 +0000 (-0700) Subject: iris: fix msaa flipping filters X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0558ca22cae1d93ea08d293f2aaf055219d9868;p=mesa.git iris: fix msaa flipping filters --- diff --git a/src/gallium/drivers/iris/iris_blit.c b/src/gallium/drivers/iris/iris_blit.c index c47e964df74..b287876e0a4 100644 --- a/src/gallium/drivers/iris/iris_blit.c +++ b/src/gallium/drivers/iris/iris_blit.c @@ -98,8 +98,8 @@ iris_blit(struct pipe_context *ctx, const struct pipe_blit_info *info) bool mirror_y = false; enum blorp_filter filter; - if (info->dst.box.width == info->src.box.width && - info->dst.box.height == info->src.box.height) { + if (abs(info->dst.box.width) == abs(info->src.box.width) && + abs(info->dst.box.height) == abs(info->src.box.height)) { if (src_surf.surf->samples > 1 && dst_surf.surf->samples <= 1) { /* The OpenGL ES 3.2 specification, section 16.2.1, says: *