<div dir="auto">Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>></div><div class="gmail_extra"><br><div class="gmail_quote">On Jan 26, 2017 4:36 AM, "Ilia Mirkin" <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">This fixes<br>
GL45-CTS.tessellation_shader.<wbr>tessellation_shader_<wbr>tessellation.max_in_out_<wbr>attributes<br>
likely among others on nouveau. We only support 30 patch varyings (as 2<br>
vec4 slots end up being used for tess level settings), but were getting<br>
32 exposed.<br>
<br>
Signed-off-by: Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>><br>
---<br>
 src/mesa/state_tracker/st_<wbr>extensions.c | 2 +-<br>
 1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/src/mesa/state_tracker/st_<wbr>extensions.c b/src/mesa/state_tracker/st_<wbr>extensions.c<br>
index 5ccc5d9..3154e9c 100644<br>
--- a/src/mesa/state_tracker/st_<wbr>extensions.c<br>
+++ b/src/mesa/state_tracker/st_<wbr>extensions.c<br>
@@ -348,7 +348,7 @@ void st_init_limits(struct pipe_screen *screen,<br>
    c-><wbr>MaxGeometryTotalOutputComponen<wbr>ts =<br>
       screen->get_param(screen, PIPE_CAP_MAX_GEOMETRY_TOTAL_<wbr>OUTPUT_COMPONENTS);<br>
    c->MaxTessPatchComponents =<br>
-      MAX2(screen->get_param(screen, PIPE_CAP_MAX_SHADER_PATCH_<wbr>VARYINGS),<br>
+      MIN2(screen->get_param(screen, PIPE_CAP_MAX_SHADER_PATCH_<wbr>VARYINGS),<br>
            MAX_VARYING) * 4;<br>
<br>
    c->MinProgramTexelOffset =<br>
--<br>
2.10.2<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</blockquote></div></div>