From: Marek Olšák Date: Fri, 20 Jan 2017 16:57:38 +0000 (+0100) Subject: gallium/radeon: adjust the rule for using the LINEAR_ALIGNED layout X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b32ae4df5bc19c378598d6a950a6019fa64ece6;p=mesa.git gallium/radeon: adjust the rule for using the LINEAR_ALIGNED layout Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index cba4e7d7340..0b77c829490 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -1184,7 +1184,9 @@ r600_choose_tiling(struct r600_common_screen *rscreen, /* Textures with a very small height are recommended to be linear. */ if (templ->target == PIPE_TEXTURE_1D || templ->target == PIPE_TEXTURE_1D_ARRAY || - templ->height0 <= 4) + /* Only very thin and long 2D textures should benefit from + * linear_aligned. */ + (templ->width0 > 8 && templ->height0 <= 2)) return RADEON_SURF_MODE_LINEAR_ALIGNED; /* Textures likely to be mapped often. */