From f0558ca22cae1d93ea08d293f2aaf055219d9868 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 24 Jul 2018 14:52:50 -0700 Subject: [PATCH] iris: fix msaa flipping filters --- src/gallium/drivers/iris/iris_blit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: * -- 2.30.2