mesa: add _mesa_program_state_value_size() helper
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 26 Jun 2020 09:56:11 +0000 (19:56 +1000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 30 Jun 2020 01:29:43 +0000 (01:29 +0000)
commit5ddab654d93f6f23f3b0f0fa79b086810b3f5c58
treead03c2c0fe08dbf0c361ab941eef3e38de6206ab
parent0e7b1a6b1a5b9e2993312dbc6ae55a87865917c2
mesa: add _mesa_program_state_value_size() helper

This allows us to query the uniform size required to store the
state value.

CC: <stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5656>
src/mesa/program/prog_statevars.c
src/mesa/program/prog_statevars.h