[Mesa-dev] [PATCH] radeonsi: reduce MAX_GEOMETRY_OUTPUT_VERTICES

Bas Nieuwenhuizen bas at basnieuwenhuizen.nl
Sat Jun 15 21:42:08 UTC 2019


Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

On Sat, Jun 15, 2019 at 1:00 AM Marek Olšák <maraeo at gmail.com> wrote:
>
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
>
> This fixes piglit spec at glsl-1.50@gs-max-output.
> ---
>  src/gallium/drivers/radeonsi/si_get.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c
> index c1bddca1a66..9496817ac84 100644
> --- a/src/gallium/drivers/radeonsi/si_get.c
> +++ b/src/gallium/drivers/radeonsi/si_get.c
> @@ -256,21 +256,23 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
>                 return sscreen->info.chip_class <= GFX8 ?
>                         PIPE_QUIRK_TEXTURE_BORDER_COLOR_SWIZZLE_R600 : 0;
>
>         /* Stream output. */
>         case PIPE_CAP_MAX_STREAM_OUTPUT_SEPARATE_COMPONENTS:
>         case PIPE_CAP_MAX_STREAM_OUTPUT_INTERLEAVED_COMPONENTS:
>                 return 32*4;
>
>         /* Geometry shader output. */
>         case PIPE_CAP_MAX_GEOMETRY_OUTPUT_VERTICES:
> -               return 1024;
> +               /* gfx8 and earlier can do more, but nobody uses it because it
> +                * would be a bad idea for performance. */
> +               return 256;
>         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;
>
>         case PIPE_CAP_MAX_VERTEX_ATTRIB_STRIDE:
>                 return 2048;
>
> --
> 2.17.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list