From: Timothy Arceri Date: Wed, 23 Dec 2015 03:26:49 +0000 (+1100) Subject: glsl: don't change the varying type in validation code X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e1e1b678785e112326cc68c40990460deff05abc;p=mesa.git glsl: don't change the varying type in validation code There is a function dedicated to demoting unused varyings lets trust it to do its job. Reviewed-by: Anuj Phogat Reviewed-by: Edward O'Callaghan --- diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp index 6119eff2fa3..c43abbcc6a5 100644 --- a/src/glsl/link_varyings.cpp +++ b/src/glsl/link_varyings.cpp @@ -1669,11 +1669,6 @@ assign_varying_locations(struct gl_context *ctx, var->name, _mesa_shader_stage_to_string(producer->Stage)); } - - /* An 'in' variable is only really a shader input if its - * value is written by the previous stage. - */ - var->data.mode = ir_var_auto; } } }