From 124f6b541b75c96ff265b0dcf05fb40e0f1e9e29 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 24 Jun 2019 14:13:20 -0700 Subject: [PATCH] panfrost: Zero pixels in any axis is zero pixels total Multiplication, not addition, so switch the logic operator. Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/pan_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 9786350..ccdeb8e 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -1601,7 +1601,7 @@ panfrost_scissor_culls_everything(struct panfrost_context *ctx) if (!(ss && ctx->rasterizer && ctx->rasterizer->base.scissor)) return false; - return (ss->minx == ss->maxx) && (ss->miny == ss->maxy); + return (ss->minx == ss->maxx) || (ss->miny == ss->maxy); } static void -- 2.7.4