panfrost: Minor cleanup of blend CSO
authorAlyssa Rosenzweig <alyssa@collabora.com>
Wed, 21 Apr 2021 16:04:09 +0000 (12:04 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 4 May 2021 20:04:03 +0000 (20:04 +0000)
No need to cast.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10393>

src/gallium/drivers/panfrost/pan_blend_cso.c

index d406076..0d5cf2d 100644 (file)
@@ -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