summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/ir_to_mesa.cpp
diff options
context:
space:
mode:
authorTimothy Arceri <[email protected]>2016-03-18 11:21:13 +1100
committerTimothy Arceri <[email protected]>2016-03-18 12:42:39 +1100
commitfa9bd6b663a1c78d5a17e3ad5407ff5530fbb0c9 (patch)
tree96bc0f3c4f25cc42062bac59106eb67132b85e8a /src/mesa/program/ir_to_mesa.cpp
parent350b1ef027167af12156df92f449f370a0f8d396 (diff)
mesa: simplify and inline _mesa_lookup_parameter_index()
The function has only one user and strings are always null terminated. Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/program/ir_to_mesa.cpp')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 10d931c8b6b..1d9047ee6fd 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2356,7 +2356,7 @@ add_uniform_to_shader::visit_field(const glsl_type *type, const char *name,
file = PROGRAM_UNIFORM;
}
- int index = _mesa_lookup_parameter_index(params, -1, name);
+ int index = _mesa_lookup_parameter_index(params, name);
if (index < 0) {
index = _mesa_add_parameter(params, file, name, size, type->gl_type,
NULL, NULL);