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 <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
committed by
Alyssa Rosenzweig
parent
d4575c3071
commit
443e530194
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user