[Mesa-dev] [PATCH] radeonsi: use the hw MSAA resolving if formats are compatible

Nicolai Hähnle nhaehnle at gmail.com
Mon May 2 16:15:08 UTC 2016


Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

On 01.05.2016 08:33, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
>
> This allows resolving RGBA into RGBX.
> This should improve HL2 Lost Coast performance.
> ---
>   src/gallium/drivers/radeonsi/si_blit.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c
> index 0233e10..716a522 100644
> --- a/src/gallium/drivers/radeonsi/si_blit.c
> +++ b/src/gallium/drivers/radeonsi/si_blit.c
> @@ -806,7 +806,8 @@ static bool do_hardware_msaa_resolve(struct pipe_context *ctx,
>   	    info->dst.resource->nr_samples <= 1 &&
>   	    util_max_layer(info->src.resource, 0) == 0 &&
>   	    util_max_layer(info->dst.resource, info->dst.level) == 0 &&
> -	    info->dst.format == info->src.format &&
> +	    util_is_format_compatible(util_format_description(info->src.format),
> +				      util_format_description(info->dst.format)) &&
>   	    !util_format_is_pure_integer(format) &&
>   	    !util_format_is_depth_or_stencil(format) &&
>   	    !info->scissor_enable &&
>


More information about the mesa-dev mailing list