Mesa (master): radeonsi: decrease the max GS invocation count to 32

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat May 23 08:00:18 UTC 2020


Module: Mesa
Branch: master
Commit: 3f1f23239a149939bf0e520722758e98d10dc908
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3f1f23239a149939bf0e520722758e98d10dc908

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon May 18 21:55:06 2020 -0400

radeonsi: decrease the max GS invocation count to 32

Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5095>

---

 src/gallium/drivers/radeonsi/si_get.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c
index fad46fa09ce..b5dafcfac36 100644
--- a/src/gallium/drivers/radeonsi/si_get.c
+++ b/src/gallium/drivers/radeonsi/si_get.c
@@ -264,9 +264,8 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
    case PIPE_CAP_MAX_GEOMETRY_TOTAL_OUTPUT_COMPONENTS:
       return 4095;
    case PIPE_CAP_MAX_GS_INVOCATIONS:
-      /* The closed driver exposes 127, but 125 is the greatest
-       * number that works. */
-      return 125;
+      /* Even though the hw supports more, we officially wanna expose only 32. */
+      return 32;
 
    case PIPE_CAP_MAX_VERTEX_ATTRIB_STRIDE:
       return 2048;



More information about the mesa-commit mailing list