radv: remove useless radv_blend_state::single_cb_enable field
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 28 Oct 2021 12:50:10 +0000 (14:50 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 23 Feb 2022 22:29:55 +0000 (22:29 +0000)
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 <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14650>

src/amd/vulkan/radv_pipeline.c

index 077e85b..22a43a7 100644 (file)
@@ -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;
    }