[Mesa-dev] [PATCH 2/2] radeonsi: remove an old hack for evergreen

Nicolai Hähnle nhaehnle at gmail.com
Mon Nov 27 11:49:17 UTC 2017


Both patches:

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

On 23.11.2017 20:35, Marek Olšák wrote:
> From: Marek Olšák <marek.olsak at amd.com>
> 
> ---
>   src/gallium/drivers/radeon/r600_texture.c | 10 ----------
>   1 file changed, 10 deletions(-)
> 
> diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c
> index 5f6e913..9feaee7 100644
> --- a/src/gallium/drivers/radeon/r600_texture.c
> +++ b/src/gallium/drivers/radeon/r600_texture.c
> @@ -290,30 +290,20 @@ static int r600_init_surface(struct r600_common_screen *rscreen,
>   				      array_mode, surface);
>   	if (r) {
>   		return r;
>   	}
>   
>   	if (rscreen->chip_class >= GFX9) {
>   		assert(!pitch_in_bytes_override ||
>   		       pitch_in_bytes_override == surface->u.gfx9.surf_pitch * bpe);
>   		surface->u.gfx9.surf_offset = offset;
>   	} else {
> -		if (pitch_in_bytes_override &&
> -		    pitch_in_bytes_override != surface->u.legacy.level[0].nblk_x * bpe) {
> -			/* old ddx on evergreen over estimate alignment for 1d, only 1 level
> -			 * for those
> -			 */
> -			surface->u.legacy.level[0].nblk_x = pitch_in_bytes_override / bpe;
> -			surface->u.legacy.level[0].slice_size = pitch_in_bytes_override *
> -								surface->u.legacy.level[0].nblk_y;
> -		}
> -
>   		if (offset) {
>   			for (i = 0; i < ARRAY_SIZE(surface->u.legacy.level); ++i)
>   				surface->u.legacy.level[i].offset += offset;
>   		}
>   	}
>   	return 0;
>   }
>   
>   static void r600_texture_init_metadata(struct r600_common_screen *rscreen,
>   				       struct r600_texture *rtex,
> 


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


More information about the mesa-dev mailing list