mesa: rework _mesa_add_parameter() to only add a single param
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 15 Jun 2017 23:56:56 +0000 (09:56 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 29 Nov 2017 10:50:48 +0000 (21:50 +1100)
commita39a3b4b76276160d99d7805109ecad9c1c95b1f
treebf6cba9daf03288443b41940ae4f770cb2eaf85c
parentf8a54c489d305010eb6c622bb4e4acd714ee7532
mesa: rework _mesa_add_parameter() to only add a single param

This is more inline with what the functions name suggests it should
do, and makes the code much easier to follow.

This will also make adding uniform packing support much simpler.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/compiler/glsl/shader_cache.cpp
src/mesa/program/ir_to_mesa.cpp
src/mesa/program/prog_parameter.c