<div dir="ltr"><div>For the series:</div><div><br></div><div>Reviewed-by: Marek Olšák <<a href="mailto:marek.olsak@amd.com">marek.olsak@amd.com</a>></div><div><br></div><div>Marek<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 12, 2019 at 9:05 AM <<a href="mailto:Mathias.Froehlich@gmx.net">Mathias.Froehlich@gmx.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">From: Mathias Fröhlich <<a href="mailto:mathias.froehlich@web.de" target="_blank">mathias.froehlich@web.de</a>><br>
<br>
Signed-off-by: Mathias Fröhlich <<a href="mailto:Mathias.Froehlich@web.de" target="_blank">Mathias.Froehlich@web.de</a>><br>
---<br>
src/mesa/main/state.c | 13 ++++++-------<br>
1 file changed, 6 insertions(+), 7 deletions(-)<br>
<br>
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c<br>
index 9d8964952cd..3e2eb28dcc5 100644<br>
--- a/src/mesa/main/state.c<br>
+++ b/src/mesa/main/state.c<br>
@@ -430,15 +430,14 @@ set_varying_vp_inputs(struct gl_context *ctx, GLbitfield varying_inputs)<br>
if (VP_MODE_FF != ctx->VertexProgram._VPMode)<br>
return;<br>
<br>
+ /* Only fixed-func generated programs ever uses varying_vp_inputs. */<br>
+ if (!ctx->VertexProgram._MaintainTnlProgram &&<br>
+ !ctx->FragmentProgram._MaintainTexEnvProgram)<br>
+ return;<br>
+<br>
if (ctx->varying_vp_inputs != varying_inputs) {<br>
ctx->varying_vp_inputs = varying_inputs;<br>
-<br>
- /* Only fixed-func generated programs ever use varying_vp_inputs. */<br>
- if (ctx->VertexProgram._MaintainTnlProgram ||<br>
- ctx->FragmentProgram._MaintainTexEnvProgram) {<br>
- ctx->NewState |= _NEW_VARYING_VP_INPUTS;<br>
- }<br>
- /*printf("%s %x\n", __func__, varying_inputs);*/<br>
+ ctx->NewState |= _NEW_VARYING_VP_INPUTS;<br>
}<br>
}<br>
<br>
--<br>
2.21.0<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">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/mailman/listinfo/mesa-dev</a></blockquote></div>