No need to cast.
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10393>
}
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