panfrost: Don't ralloc panfrost_blend_state

Pointless divergence from other CSO creates.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Acked-by: Boris Brezillon <boris.brezillon@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11745>
This commit is contained in:
Alyssa Rosenzweig
2021-07-06 17:55:21 -04:00
committed by Marge Bot
parent 25a879e5f9
commit c08dd038dc
2 changed files with 2 additions and 9 deletions
+1 -2
View File
@@ -3456,9 +3456,8 @@ static void *
panfrost_create_blend_state(struct pipe_context *pipe,
const struct pipe_blend_state *blend)
{
struct panfrost_context *ctx = pan_context(pipe);
struct panfrost_device *dev = pan_device(pipe->screen);
struct panfrost_blend_state *so = rzalloc(ctx, struct panfrost_blend_state);
struct panfrost_blend_state *so = CALLOC_STRUCT(panfrost_blend_state);
so->base = *blend;
so->pan.logicop_enable = blend->logicop_enable;
+1 -7
View File
@@ -142,12 +142,6 @@ panfrost_bind_blend_state(struct pipe_context *pipe, void *cso)
ctx->dirty_shader[PIPE_SHADER_FRAGMENT] |= PAN_DIRTY_STAGE_RENDERER;
}
static void
panfrost_delete_blend_state(struct pipe_context *pipe, void *cso)
{
ralloc_free(cso);
}
static void
panfrost_set_blend_color(struct pipe_context *pipe,
const struct pipe_blend_color *blend_color)
@@ -1119,7 +1113,7 @@ panfrost_create_context(struct pipe_screen *screen, void *priv, unsigned flags)
gallium->set_stream_output_targets = panfrost_set_stream_output_targets;
gallium->bind_blend_state = panfrost_bind_blend_state;
gallium->delete_blend_state = panfrost_delete_blend_state;
gallium->delete_blend_state = panfrost_generic_cso_delete;
gallium->set_blend_color = panfrost_set_blend_color;