From: Alyssa Rosenzweig Date: Mon, 24 Jun 2019 21:13:20 +0000 (-0700) Subject: panfrost: Zero pixels in any axis is zero pixels total X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=124f6b541b75c96ff265b0dcf05fb40e0f1e9e29;p=mesa.git panfrost: Zero pixels in any axis is zero pixels total Multiplication, not addition, so switch the logic operator. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index 97863504d4b..ccdeb8e2c2e 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