From: Marek Olšák Date: Mon, 31 Jul 2017 22:12:30 +0000 (+0200) Subject: ac/surface: limit tile swizzle to non-mipmaps on SI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0141beadd8da5c857fe76f42a49ce379f0c700af;p=mesa.git ac/surface: limit tile swizzle to non-mipmaps on SI Mipmapping with tile swizzle doesn't work. Reviewed-by: Dave Airlie Reviewed-by: Nicolai Hähnle --- diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index 87a89936e1c..3716d3ddb04 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))) {