aboutsummaryrefslogtreecommitdiffstats
path: root/radeon
diff options
context:
space:
mode:
authorMarek Olšák2016-05-26 07:33:12 -0500
committerMarek Olšák2016-06-14 04:45:30 -0500
commit625d1810ad1f61dd4f4b2b2ee7e5cc67e1fdc2f1 (patch)
treef93b929dce0aa4af36b0d8274cb7678d0d77d978 /radeon
parent09bfd5c716eeaacec06c1d326b52b47e393e4d3e (diff)
downloadexternal-libdrm-625d1810ad1f61dd4f4b2b2ee7e5cc67e1fdc2f1.tar.gz
external-libdrm-625d1810ad1f61dd4f4b2b2ee7e5cc67e1fdc2f1.tar.xz
external-libdrm-625d1810ad1f61dd4f4b2b2ee7e5cc67e1fdc2f1.zip
radeon: use SAMPLE_SPLIT=2 for better MSAA perf on EG/CM
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'radeon')
-rw-r--r--radeon/radeon_surface.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/radeon/radeon_surface.c b/radeon/radeon_surface.c
index 5ec97454..1424660d 100644
--- a/radeon/radeon_surface.c
+++ b/radeon/radeon_surface.c
@@ -957,8 +957,10 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man,
957 } 957 }
958 surf->stencil_tile_split = 64; 958 surf->stencil_tile_split = 64;
959 } else { 959 } else {
960 /* tile split must be >= 256 for colorbuffer surfaces */ 960 /* tile split must be >= 256 for colorbuffer surfaces,
961 surf->tile_split = MAX2(surf->nsamples * surf->bpe * 64, 256); 961 * SAMPLE_SPLIT = tile_split / (bpe * 64), the optimal value is 2
962 */
963 surf->tile_split = MAX2(2 * surf->bpe * 64, 256);
962 if (surf->tile_split > 4096) 964 if (surf->tile_split > 4096)
963 surf->tile_split = 4096; 965 surf->tile_split = 4096;
964 } 966 }