gallium/radeon: adjust the rule for using the LINEAR_ALIGNED layout

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2017-01-20 17:57:38 +01:00
parent e248390e93
commit 7b32ae4df5
1 changed files with 3 additions and 1 deletions

View File

@ -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. */