rav: use 32_AR instead of 32_ABGR when alpha coverage is required
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 1 Mar 2019 17:28:02 +0000 (18:28 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 4 Mar 2019 11:02:01 +0000 (12:02 +0100)
This export format is faster. Seems to improve performance in
Wreckfest.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline.c

index 09363af37e745bb15c6f8e4dc40605a080068d0a..55dbe0620a6c788523ca0901b8786b3ac6e19122 100644 (file)
@@ -529,7 +529,7 @@ radv_pipeline_compute_spi_color_formats(struct radv_pipeline *pipeline,
                 * alpha channel of MRT0 when alpha coverage is enabled because
                 * the depth attachment needs it.
                 */
-               col_format |= V_028714_SPI_SHADER_32_ABGR;
+               col_format |= V_028714_SPI_SHADER_32_AR;
        }
 
        /* If the i-th target format is set, all previous target formats must