summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/panfrost
diff options
context:
space:
mode:
authorBoris Brezillon <[email protected]>2019-06-26 11:16:31 +0200
committerAlyssa Rosenzweig <[email protected]>2019-06-26 09:35:25 -0700
commit443e530194eca113da34678f50ed30f50ba135d4 (patch)
tree471a75228f7e84320e180b18c47d63cba13fdf24 /src/gallium/drivers/panfrost
parentd4575c307104d9afba65031370e35548b73058d1 (diff)
panfrost: Remove unneeded check in panfrost_scissor_culls_everything()
The ss local var is guaranteed to be != NULL. Get rid of this useless check. Signed-off-by: Boris Brezillon <[email protected]> Reviewed-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/gallium/drivers/panfrost')
-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 f20caaad07d..967d7116c24 100644
--- a/src/gallium/drivers/panfrost/pan_context.c
+++ b/src/gallium/drivers/panfrost/pan_context.c
@@ -1600,7 +1600,7 @@ panfrost_scissor_culls_everything(struct panfrost_context *ctx)
/* Check if we're scissoring at all */
- if (!(ss && ctx->rasterizer && ctx->rasterizer->base.scissor))
+ if (!(ctx->rasterizer && ctx->rasterizer->base.scissor))
return false;
return (ss->minx == ss->maxx) || (ss->miny == ss->maxy);