From: Marek Olšák Date: Sun, 6 Nov 2016 21:31:49 +0000 (+0100) Subject: radeonsi/gfx9: don't check array_mode for allowing TC-compatible HTILE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fcad40ca5494846ef1d54deee2bfe9bd4bf0405;p=mesa.git radeonsi/gfx9: don't check array_mode for allowing TC-compatible HTILE GFX9 supports this with all modes except linear. Reviewed-by: Nicolai Hähnle --- diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 10ee46aee6c..f372341505e 100644 --- a/src/gallium/drivers/radeon/r600_texture.c +++ b/src/gallium/drivers/radeon/r600_texture.c @@ -222,7 +222,8 @@ static int r600_init_surface(struct r600_common_screen *rscreen, flags |= RADEON_SURF_ZBUFFER; if (tc_compatible_htile && - array_mode == RADEON_SURF_MODE_2D) { + (rscreen->chip_class >= GFX9 || + array_mode == RADEON_SURF_MODE_2D)) { /* TC-compatible HTILE only supports Z32_FLOAT. * GFX9 also supports Z16_UNORM. * On VI, promote Z16 to Z32. DB->CB copies will convert