We always compute HTILE size using addrlib, even when not TC compatible.

Signed-off-by: Bas Nieuwenhuizen <[email protected]>
---
 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

_______________________________________________
mesa-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to