ac/surface: Fix HTILE for radv.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 21 May 2017 21:40:54 +0000 (23:40 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 6 Jun 2017 01:17:02 +0000 (03:17 +0200)
We always compute HTILE size using addrlib, even when not TC compatible.

Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlied <airlied@redhat.com>
src/amd/common/ac_surface.c

index 51e15d07d3cd4019ae764be6898ea1723cbbb1e5..877d592ab81862f098b3e8178e9cc3229703a9b0 100644 (file)
@@ -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;