From: Marek Olšák Date: Sat, 8 Jul 2017 18:22:54 +0000 (+0200) Subject: ac/surface/gfx9: flags.texture currently refers to TC-compatible HTILE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ddbd2f4c540425a30e36bf18df845b8f5c41495d;p=mesa.git ac/surface/gfx9: flags.texture currently refers to TC-compatible HTILE This should lead to better MSAA performance on GFX9. Reviewed-by: Nicolai Hähnle --- diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index 1a43b23d32f..cd3d7b715cf 100644 --- a/src/amd/common/ac_surface.c +++ b/src/amd/common/ac_surface.c @@ -961,7 +961,9 @@ static int gfx9_compute_surface(ADDR_HANDLE addrlib, AddrSurfInfoIn.flags.color = !(surf->flags & RADEON_SURF_Z_OR_SBUFFER); AddrSurfInfoIn.flags.depth = (surf->flags & RADEON_SURF_ZBUFFER) != 0; AddrSurfInfoIn.flags.display = (surf->flags & RADEON_SURF_SCANOUT) != 0; - AddrSurfInfoIn.flags.texture = 1; + /* flags.texture currently refers to TC-compatible HTILE */ + AddrSurfInfoIn.flags.texture = AddrSurfInfoIn.flags.color || + surf->flags & RADEON_SURF_TC_COMPATIBLE_HTILE; AddrSurfInfoIn.flags.opt4space = 1; AddrSurfInfoIn.numMipLevels = config->info.levels;