From ddbd2f4c540425a30e36bf18df845b8f5c41495d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 8 Jul 2017 20:22:54 +0200 Subject: [PATCH] ac/surface/gfx9: flags.texture currently refers to TC-compatible HTILE MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This should lead to better MSAA performance on GFX9. Reviewed-by: Nicolai Hähnle --- 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 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; -- 2.30.2