panfrost: Zero pixels in any axis is zero pixels total

Multiplication, not addition, so switch the logic operator.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
Alyssa Rosenzweig 2019-06-24 14:13:20 -07:00
parent 06211f45a7
commit 124f6b541b
1 changed files with 1 additions and 1 deletions

View 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