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 <anuj.phogat@gmail.com> Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
parent
21590a307c
commit
e1e1b67878
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue