[Mesa-dev] [PATCH 1/3] radeonsi: allow copying between compatible compressed and uncompressed formats

Michel Dänzer michel at daenzer.net
Mon Oct 26 01:33:45 PDT 2015


On 26.10.2015 02:25, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> which is where a block in src maps to a pixel in dst and vice versa.
> e.g. DXT1 <-> R32G32_UINT
>      DXT5 <-> R32G32B32A32_UINT
> ---
>  src/gallium/drivers/radeonsi/si_blit.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/gallium/drivers/radeonsi/si_blit.c b/src/gallium/drivers/radeonsi/si_blit.c
> index a226436..cd2add4 100644
> --- a/src/gallium/drivers/radeonsi/si_blit.c
> +++ b/src/gallium/drivers/radeonsi/si_blit.c
> @@ -507,7 +507,7 @@ void si_resource_copy_region(struct pipe_context *ctx,
>  	util_blitter_default_dst_texture(&dst_templ, dst, dst_level, dstz);
>  	util_blitter_default_src_texture(&src_templ, src, src_level);
>  
> -	if (util_format_is_compressed(src->format) &&
> +	if (util_format_is_compressed(src->format) ||
>  	    util_format_is_compressed(dst->format)) {
>  		unsigned blocksize = util_format_get_blocksize(src->format);
>  
> 

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the mesa-dev mailing list