From 5268a8500a5a67956df684cdb86a1bc5eb847fbe Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 21 Apr 2021 12:04:09 -0400 Subject: [PATCH] panfrost: Minor cleanup of blend CSO No need to cast. Signed-off-by: Alyssa Rosenzweig Part-of: --- src/gallium/drivers/panfrost/pan_blend_cso.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_blend_cso.c b/src/gallium/drivers/panfrost/pan_blend_cso.c index d406076..0d5cf2d 100644 --- a/src/gallium/drivers/panfrost/pan_blend_cso.c +++ b/src/gallium/drivers/panfrost/pan_blend_cso.c @@ -100,19 +100,16 @@ panfrost_create_blend_state(struct pipe_context *pipe, } static void -panfrost_bind_blend_state(struct pipe_context *pipe, - void *cso) +panfrost_bind_blend_state(struct pipe_context *pipe, void *cso) { struct panfrost_context *ctx = pan_context(pipe); - ctx->blend = (struct panfrost_blend_state *) cso; + ctx->blend = cso; } static void -panfrost_delete_blend_state(struct pipe_context *pipe, - void *cso) +panfrost_delete_blend_state(struct pipe_context *pipe, void *cso) { - struct panfrost_blend_state *blend = (struct panfrost_blend_state *) cso; - ralloc_free(blend); + ralloc_free(cso); } static void -- 2.7.4