summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-06-24 14:13:20 -0700
committerAlyssa Rosenzweig <[email protected]>2019-06-25 13:39:17 -0700
commit124f6b541b75c96ff265b0dcf05fb40e0f1e9e29 (patch)
treecacbf14b27c282dade041cc14b6dcc7738296194 /src
parent06211f45a7fd76c29ba4369542b6f2eb04e1d034 (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]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/panfrost/pan_context.c2
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