From: Alyssa Rosenzweig Date: Thu, 20 Aug 2020 19:57:59 +0000 (-0400) Subject: panfrost: Simplify bind_blend_state X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0268e8481e3793e8078723afd3b7dee89e6d8f09;p=mesa.git panfrost: Simplify bind_blend_state Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso Part-of: --- 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