From 0268e8481e3793e8078723afd3b7dee89e6d8f09 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 20 Aug 2020 15:57:59 -0400 Subject: [PATCH] panfrost: Simplify bind_blend_state Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso Part-of: --- src/gallium/drivers/panfrost/pan_blend_cso.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_blend_cso.c b/src/gallium/drivers/panfrost/pan_blend_cso.c index 4d90101366a..46b0832fe06 100644 --- a/src/gallium/drivers/panfrost/pan_blend_cso.c +++ b/src/gallium/drivers/panfrost/pan_blend_cso.c @@ -146,12 +146,7 @@ panfrost_bind_blend_state(struct pipe_context *pipe, void *cso) { struct panfrost_context *ctx = pan_context(pipe); - struct pipe_blend_state *blend = (struct pipe_blend_state *) cso; - struct panfrost_blend_state *pblend = (struct panfrost_blend_state *) cso; - ctx->blend = pblend; - - if (!blend) - return; + ctx->blend = (struct panfrost_blend_state *) cso; } static void -- 2.30.2