From c58b46edf0e96f927c3d7401229479046e57dc7d Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 18 Sep 2020 12:25:16 +0200 Subject: [PATCH] radeonsi: force linear for textures with height=1 (gfx6-8) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit addrlib will force it only for level = 0, so force it when we create a height=1/multi-level texture. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2250 Reviewed-by: Marek Olšák Part-of: --- src/gallium/drivers/radeonsi/si_texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_texture.c b/src/gallium/drivers/radeonsi/si_texture.c index 9353622a07a..dda309af49f 100644 --- a/src/gallium/drivers/radeonsi/si_texture.c +++ b/src/gallium/drivers/radeonsi/si_texture.c @@ -1263,7 +1263,7 @@ static enum radeon_surf_mode si_choose_tiling(struct si_screen *sscreen, if (templ->target == PIPE_TEXTURE_1D || templ->target == PIPE_TEXTURE_1D_ARRAY || /* Only very thin and long 2D textures should benefit from * linear_aligned. */ - (templ->width0 > 8 && templ->height0 <= 2)) + templ->height0 <= 2) return RADEON_SURF_MODE_LINEAR_ALIGNED; /* Textures likely to be mapped often. */