diff options
author | Marek Olšák <[email protected]> | 2017-07-08 20:22:54 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-07-17 10:56:46 -0400 |
commit | ddbd2f4c540425a30e36bf18df845b8f5c41495d (patch) | |
tree | 0dbac59e3c6d1c56013698ea4b7e1e52f61967d6 /src/amd/common | |
parent | ffa7ec9e2298d1cefafbc970f8059d5c6e2f5ac0 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/amd/common')
-rw-r--r-- | src/amd/common/ac_surface.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |