From 959e8586aa916ffdab305b155b9155864cb11a25 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 28 Oct 2021 14:50:10 +0200 Subject: [PATCH] radv: remove useless radv_blend_state::single_cb_enable field This was only used for meta operations. DCC/FMASK/FCE pipelines only declare one color attachment and the color writemask of the second color attachment is 0 for the HW CB resolve. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_pipeline.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 077e85b52f8..22a43a76ee0 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -64,7 +64,6 @@ struct radv_blend_state { uint32_t commutative_4bit; - bool single_cb_enable; bool mrt0_is_dual_src; }; @@ -541,8 +540,7 @@ radv_pipeline_compute_spi_color_formats(const struct radv_pipeline *pipeline, unsigned num_targets; if (render_create_info) { - for (unsigned i = 0; - i < (blend->single_cb_enable ? 1 : render_create_info->colorAttachmentCount); ++i) { + for (unsigned i = 0; i < render_create_info->colorAttachmentCount; ++i) { unsigned cf; VkFormat fmt = render_create_info->pColorAttachmentFormats[i]; @@ -682,7 +680,6 @@ radv_pipeline_init_blend_state(struct radv_pipeline *pipeline, int i; if (extra && extra->custom_blend_mode) { - blend.single_cb_enable = true; mode = extra->custom_blend_mode; }