summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Arceri <timothy.arceri@collabora.com>2015-12-23 14:26:49 +1100
committerTimothy Arceri <timothy.arceri@collabora.com>2016-01-06 10:52:58 +1100
commite1e1b678785e112326cc68c40990460deff05abc (patch)
tree6b4dbd211b542bf3cffde91c6c2a3601e879a803
parent21590a307cac5cf9fc963f0700131c2d8b0d9731 (diff)
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>
-rw-r--r--src/glsl/link_varyings.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/glsl/link_varyings.cpp b/src/glsl/link_varyings.cpp
index 6119eff2fa..c43abbcc6a 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;
}
}
}