mesa: fix _mesa_add{_typed}_unnamed_constant() declarations
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 26 Apr 2021 06:37:01 +0000 (16:37 +1000)
committerMarge Bot <eric+marge@anholt.net>
Mon, 26 Apr 2021 13:48:11 +0000 (13:48 +0000)
commit8d84a89cf601b7d6306043c097f9976eb635eb58
treebe78bedcfa52b7ea5ea6ed36e4029f7d09b4772a
parentdb717677e7bbaa40f0553dd3b2d7ccf23d392705
mesa: fix _mesa_add{_typed}_unnamed_constant() declarations

The function may be passed in a single float or a vec4. Fixes
gcc warnings.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10446>
src/mesa/program/prog_parameter.c
src/mesa/program/prog_parameter.h