panfrost: Zero pixels in any axis is zero pixels total
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Mon, 24 Jun 2019 21:13:20 +0000 (14:13 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Tue, 25 Jun 2019 20:39:17 +0000 (13:39 -0700)
Multiplication, not addition, so switch the logic operator.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/gallium/drivers/panfrost/pan_context.c

index 97863504d4bffb1b1dc6e67f11d01d9608396516..ccdeb8e2c2ef8abdd88a549f6495b39571a0fb85 100644 (file)
@@ -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