[Mesa-dev] [PATCH] rav: use 32_AR instead of 32_ABGR when alpha coverage is required
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Mon Mar 4 10:30:59 UTC 2019
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
On Fri, Mar 1, 2019 at 6:25 PM Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
>
> This export format is faster. Seems to improve performance in
> Wreckfest.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
> ---
> src/amd/vulkan/radv_pipeline.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c
> index 30c3f60790e..7f2f96c540a 100644
> --- a/src/amd/vulkan/radv_pipeline.c
> +++ b/src/amd/vulkan/radv_pipeline.c
> @@ -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
> --
> 2.21.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list