[Mesa-dev] [PATCH 2/2] ac/surface: always compute DCC info when DCC is possible on GFX9

Nicolai Hähnle nhaehnle at gmail.com
Thu Nov 30 15:40:52 UTC 2017


On 30.11.2017 02:20, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> The same code for VI doesn't check for scanout either.

Both patches:

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

> ---
>   src/amd/common/ac_surface.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
> index 8347c45..590920e 100644
> --- a/src/amd/common/ac_surface.c
> +++ b/src/amd/common/ac_surface.c
> @@ -918,21 +918,20 @@ static int gfx9_compute_miptree(ADDR_HANDLE addrlib,
>   			return ret;
>   
>   		surf->u.gfx9.htile.rb_aligned = hin.hTileFlags.rbAligned;
>   		surf->u.gfx9.htile.pipe_aligned = hin.hTileFlags.pipeAligned;
>   		surf->htile_size = hout.htileBytes;
>   		surf->htile_slice_size = hout.sliceSize;
>   		surf->htile_alignment = hout.baseAlign;
>   	} else {
>   		/* DCC */
>   		if (!(surf->flags & RADEON_SURF_DISABLE_DCC) &&
> -		    !(surf->flags & RADEON_SURF_SCANOUT) &&
>   		    !compressed &&
>   		    in->swizzleMode != ADDR_SW_LINEAR) {
>   			ADDR2_COMPUTE_DCCINFO_INPUT din = {0};
>   			ADDR2_COMPUTE_DCCINFO_OUTPUT dout = {0};
>   			ADDR2_META_MIP_INFO meta_mip_info[RADEON_SURF_MAX_LEVELS] = {};
>   
>   			din.size = sizeof(ADDR2_COMPUTE_DCCINFO_INPUT);
>   			dout.size = sizeof(ADDR2_COMPUTE_DCCINFO_OUTPUT);
>   			dout.pMipInfo = meta_mip_info;
>   
> 


-- 
Lerne, wie die Welt wirklich ist,
Aber vergiss niemals, wie sie sein sollte.


More information about the mesa-dev mailing list