projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f09b0d
)
radeonsi/gfx9: don't check array_mode for allowing TC-compatible HTILE
author
Marek Olšák
<marek.olsak@amd.com>
Sun, 6 Nov 2016 21:31:49 +0000
(22:31 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 30 Mar 2017 12:44:33 +0000
(14:44 +0200)
GFX9 supports this with all modes except linear.
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeon/r600_texture.c
b/src/gallium/drivers/radeon/r600_texture.c
index 10ee46aee6c9ccb09fc27a78970609e7b9709836..f372341505e3973cbdd8d36f2de8ee3576d6a7b7 100644
(file)
--- 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