Mesa (master): ac/surface: limit tile swizzle to non-mipmaps on SI

Marek Olšák mareko at kemper.freedesktop.org
Fri Aug 4 00:11:22 UTC 2017


Module: Mesa
Branch: master
Commit: 0141beadd8da5c857fe76f42a49ce379f0c700af
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0141beadd8da5c857fe76f42a49ce379f0c700af

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Aug  1 00:12:30 2017 +0200

ac/surface: limit tile swizzle to non-mipmaps on SI

Mipmapping with tile swizzle doesn't work.

Reviewed-by: Dave Airlie <airlied at redhat.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/amd/common/ac_surface.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c
index 87a89936e1..3716d3ddb0 100644
--- a/src/amd/common/ac_surface.c
+++ b/src/amd/common/ac_surface.c
@@ -435,7 +435,9 @@ static int gfx6_surface_settings(ADDR_HANDLE addrlib,
 	}
 
 	/* Compute tile swizzle. */
-	if (config->info.surf_index &&
+	/* TODO: fix tile swizzle with mipmapping for SI */
+	if ((info->chip_class >= CIK || config->info.levels == 1) &&
+	    config->info.surf_index &&
 	    surf->u.legacy.level[0].mode == RADEON_SURF_MODE_2D &&
 	    !(surf->flags & (RADEON_SURF_Z_OR_SBUFFER | RADEON_SURF_SHAREABLE)) &&
 	    (config->info.samples > 1 || !(surf->flags & RADEON_SURF_SCANOUT))) {




More information about the mesa-commit mailing list