[Mesa-dev] [PATCH] ac/surface: Fix HTILE for radv.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Sun May 21 21:42:26 UTC 2017
We always compute HTILE size using addrlib, even when not TC compatible.
Signed-off-by: Bas Nieuwenhuizen <basni at google.com>
---
src/amd/common/ac_surface.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index 51e15d07d3c..877d592ab81 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -331,10 +331,9 @@ static int gfx6_compute_level(ADDR_HANDLE addrlib,
/* TC-compatible HTILE. */
if (!is_stencil &&
AddrSurfInfoIn->flags.depth &&
- AddrSurfInfoIn->flags.tcCompatible &&
surf_level->mode == RADEON_SURF_MODE_2D &&
level == 0) {
- AddrHtileIn->flags.tcCompatible = 1;
+ AddrHtileIn->flags.tcCompatible = AddrSurfInfoIn->flags.tcCompatible;
AddrHtileIn->pitch = AddrSurfInfoOut->pitch;
AddrHtileIn->height = AddrSurfInfoOut->height;
AddrHtileIn->numSlices = AddrSurfInfoOut->depth;
--
2.12.2
More information about the mesa-dev
mailing list