From 8073e27d02b2263bc48a1bb1fd4b2eae3f03e8d6 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 19 Aug 2020 10:34:05 -0400 Subject: [PATCH] panfrost: Rename shader emit functions Now they handle everything in one go, so there's no init to speak of. Signed-off-by: Alyssa Rosenzweig Reviewed-by: Tomeu Vizoso Part-of: --- src/gallium/drivers/panfrost/pan_cmdstream.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/panfrost/pan_cmdstream.c b/src/gallium/drivers/panfrost/pan_cmdstream.c index c75989c435b..1012804df49 100644 --- a/src/gallium/drivers/panfrost/pan_cmdstream.c +++ b/src/gallium/drivers/panfrost/pan_cmdstream.c @@ -307,7 +307,7 @@ panfrost_vt_set_draw_info(struct panfrost_context *ctx, } static void -panfrost_compute_shader_meta_init(struct panfrost_context *ctx, +panfrost_emit_compute_shader(struct panfrost_context *ctx, enum pipe_shader_type st, struct mali_shader_meta *meta) { @@ -541,7 +541,7 @@ panfrost_emit_blend(struct panfrost_batch *batch, void *rts, } static void -panfrost_frag_shader_meta_init(struct panfrost_context *ctx, +panfrost_emit_frag_shader(struct panfrost_context *ctx, struct mali_shader_meta *fragmeta, struct panfrost_blend_final *blend) { @@ -806,7 +806,7 @@ panfrost_emit_shader_meta(struct panfrost_batch *batch, for (unsigned c = 0; c < ctx->pipe_framebuffer.nr_cbufs; ++c) blend[c] = panfrost_get_blend_for_context(ctx, c); - panfrost_frag_shader_meta_init(ctx, &meta, blend); + panfrost_emit_frag_shader(ctx, &meta, blend); if (!(dev->quirks & MIDGARD_SFBD)) panfrost_emit_blend(batch, rts, blend); @@ -823,7 +823,7 @@ panfrost_emit_shader_meta(struct panfrost_batch *batch, shader_ptr = xfer.gpu; } else { - panfrost_compute_shader_meta_init(ctx, st, &meta); + panfrost_emit_compute_shader(ctx, st, &meta); shader_ptr = panfrost_pool_upload(&batch->pool, &meta, sizeof(meta)); -- 2.30.2