glsl: simplify add_uniform_to_shader::visit_field
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 23 Jun 2017 18:20:31 +0000 (20:20 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Jul 2017 10:25:49 +0000 (12:25 +0200)
commitf4f7096c1d68746a1833ba1b19d8a290a83cbdde
treee54e685018cc081613d4b46ae2a36dffe4b5645d
parent727e8ba1331f64f831626da7ca8961b560e58c5c
glsl: simplify add_uniform_to_shader::visit_field

Each field gets a distinct name, so we should never hit the case where
the name already exists in the parameter list.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/program/ir_to_mesa.cpp