Commit fc455797 authored by Mathias Fröhlich's avatar Mathias Fröhlich Committed by Mathias Fröhlich
Browse files

mesa: Set _NEW_VARYING_VP_INPUTS iff varying_vp_inputs are set.


Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Signed-off-by: Mathias Fröhlich's avatarMathias Fröhlich <Mathias.Froehlich@web.de>
parent b4b1df5a
Pipeline #36799 passed with stages
in 9 minutes and 40 seconds
......@@ -430,15 +430,14 @@ set_varying_vp_inputs(struct gl_context *ctx, GLbitfield varying_inputs)
if (VP_MODE_FF != ctx->VertexProgram._VPMode)
return;
/* Only fixed-func generated programs ever uses varying_vp_inputs. */
if (!ctx->VertexProgram._MaintainTnlProgram &&
!ctx->FragmentProgram._MaintainTexEnvProgram)
return;
if (ctx->varying_vp_inputs != varying_inputs) {
ctx->varying_vp_inputs = varying_inputs;
/* Only fixed-func generated programs ever use varying_vp_inputs. */
if (ctx->VertexProgram._MaintainTnlProgram ||
ctx->FragmentProgram._MaintainTexEnvProgram) {
ctx->NewState |= _NEW_VARYING_VP_INPUTS;
}
/*printf("%s %x\n", __func__, varying_inputs);*/
ctx->NewState |= _NEW_VARYING_VP_INPUTS;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment