panfrost: Minor cleanup of blend CSO
No need to cast. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10393>
This commit is contained in:
committed by
Marge Bot
parent
3968f03754
commit
5268a8500a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user