From: Marek Olšák <marek.ol...@amd.com>

GFX9 supports this with all modes except linear.
---
 src/gallium/drivers/radeon/r600_texture.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeon/r600_texture.c 
b/src/gallium/drivers/radeon/r600_texture.c
index 10ee46a..f372341 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
-- 
2.7.4

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to