diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-06-24 14:13:20 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-06-25 13:39:17 -0700 |
commit | 124f6b541b75c96ff265b0dcf05fb40e0f1e9e29 (patch) | |
tree | cacbf14b27c282dade041cc14b6dcc7738296194 | |
parent | 06211f45a7fd76c29ba4369542b6f2eb04e1d034 (diff) |
panfrost: Zero pixels in any axis is zero pixels total
Multiplication, not addition, so switch the logic operator.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
-rw-r--r-- | src/gallium/drivers/panfrost/pan_context.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |