[Mesa-dev] [PATCH 102/140] radeonsi/gfx9: don't check array_mode for allowing TC-compatible HTILE
Marek Olšák
maraeo at gmail.com
Mon Mar 20 22:48:48 UTC 2017
From: Marek Olšák <marek.olsak at 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
More information about the mesa-dev
mailing list