[Mesa-dev] [PATCH] st/mesa: MAX_VARYING is the max supported number of patch varyings, not min

Marek Olšák maraeo at gmail.com
Thu Jan 26 17:44:56 UTC 2017


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

On Jan 26, 2017 4:36 AM, "Ilia Mirkin" <imirkin at alum.mit.edu> wrote:

> This fixes
> GL45-CTS.tessellation_shader.tessellation_shader_tessellation.max_in_out_
> attributes
> likely among others on nouveau. We only support 30 patch varyings (as 2
> vec4 slots end up being used for tess level settings), but were getting
> 32 exposed.
>
> Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
>  src/mesa/state_tracker/st_extensions.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/state_tracker/st_extensions.c
> b/src/mesa/state_tracker/st_extensions.c
> index 5ccc5d9..3154e9c 100644
> --- a/src/mesa/state_tracker/st_extensions.c
> +++ b/src/mesa/state_tracker/st_extensions.c
> @@ -348,7 +348,7 @@ void st_init_limits(struct pipe_screen *screen,
>     c->MaxGeometryTotalOutputComponents =
>        screen->get_param(screen, PIPE_CAP_MAX_GEOMETRY_TOTAL_
> OUTPUT_COMPONENTS);
>     c->MaxTessPatchComponents =
> -      MAX2(screen->get_param(screen, PIPE_CAP_MAX_SHADER_PATCH_VARYINGS),
> +      MIN2(screen->get_param(screen, PIPE_CAP_MAX_SHADER_PATCH_VARYINGS),
>             MAX_VARYING) * 4;
>
>     c->MinProgramTexelOffset =
> --
> 2.10.2
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170126/8acf3d61/attachment-0001.html>


More information about the mesa-dev mailing list