radeonsi: bump MAX_GS_INVOCATIONS
authorMarek Olšák <marek.olsak@amd.com>
Mon, 6 Aug 2018 12:09:52 +0000 (08:09 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 23 Aug 2018 20:56:17 +0000 (16:56 -0400)
same as the closed driver

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/gallium/drivers/radeonsi/si_get.c
src/gallium/drivers/radeonsi/si_state_shaders.c

index e2e53514239c18abb176558dec48663ab694babc..a282b69a87b104f6122a9eb8c6173ad4fef3e4f3 100644 (file)
@@ -263,7 +263,9 @@ 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:
-               return 32;
+               /* The closed driver exposes 127, but 125 is the greatest
+                * number that works. */
+               return 125;
 
        case PIPE_CAP_MAX_VERTEX_ATTRIB_STRIDE:
                return 2048;
index 0766d8cb7d8cbf3708d7d076b4300e3a3ff5bc7c..157a0e37eb0fa79df3233a7a51f61269235115f6 100644 (file)
@@ -657,8 +657,6 @@ static void gfx9_get_gs_info(struct si_shader_selector *es,
        unsigned max_gs_prims, gs_prims;
        unsigned min_es_verts, es_verts, worst_case_es_verts;
 
-       assert(gs_num_invocations <= 32); /* GL maximum */
-
        if (uses_adjacency || gs_num_invocations > 1)
                max_gs_prims = 127 / gs_num_invocations;
        else