Skip to contentSkip to conversation

radeon: use SAMPLE_SPLIT=2 for better MSAA perf on EG/CM

PATCH In review Marek Olšák 2 participants 2 messages May 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 radeon: use SAMPLE_SPLIT=2 for better MSAA perf on EG/CM

From: Marek Olšák <[email protected]>

---
 radeon/radeon_surface.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
radeon/radeon_surface.c +4 -2
index 5ec9745..1424660 100644
@@ -957,8 +957,10 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man,
             }
             surf->stencil_tile_split = 64;
         } else {
-            /* tile split must be >= 256 for colorbuffer surfaces */
-            surf->tile_split = MAX2(surf->nsamples * surf->bpe * 64, 256);
+            /* tile split must be >= 256 for colorbuffer surfaces,
+             * SAMPLE_SPLIT = tile_split / (bpe * 64), the optimal value is 2
+             */
+            surf->tile_split = MAX2(2 * surf->bpe * 64, 256);
             if (surf->tile_split > 4096)
                 surf->tile_split = 4096;
         }
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Marek Olšák

From: Marek Olšák <[email protected]>

Quoted 24 lines
---
 radeon/radeon_surface.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
radeon/radeon_surface.c +4 -3
index 5ec9745..1424660 100644
@@ -957,8 +957,10 @@ static int eg_surface_best(struct radeon_surface_manager *surf_man,
             }
             surf->stencil_tile_split = 64;
         } else {
-            /* tile split must be >= 256 for colorbuffer surfaces */
-            surf->tile_split = MAX2(surf->nsamples * surf->bpe * 64, 256);
+            /* tile split must be >= 256 for colorbuffer surfaces,
+             * SAMPLE_SPLIT = tile_split / (bpe * 64), the optimal value is 2
+             */
+            surf->tile_split = MAX2(2 * surf->bpe * 64, 256);
             if (surf->tile_split > 4096)
                 surf->tile_split = 4096;
         }
--

2.7.4

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel