summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2015-12-23 14:26:49 +1100
committerTimothy Arceri <[email protected]>2016-01-06 10:52:58 +1100
commite1e1b678785e112326cc68c40990460deff05abc (patch)
tree6b4dbd211b542bf3cffde91c6c2a3601e879a803 /src/glsl
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 <[email protected]> Reviewed-by: Edward O'Callaghan <[email protected]>
Diffstat (limited to 'src/glsl')
-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 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;
}
}
}