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

Juan A. Suarez Romero jasuarez at igalia.com
Tue Jun 18 10:03:15 UTC 2019


On Fri, 2019-06-14 at 19:00 -0400, Marek Olšák wrote:
> From: Nicolai Hähnle <nicolai.haehnle at amd.com>
> 
> This fixes piglit spec at glsl-1.50@gs-max-output.
> ---


Does it make sense to nominate this for stable?

	J.A.

>  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;
>  



More information about the mesa-dev mailing list