-
Marek Olšák authored
This changes the code so that program parameters no longer have to be sorted (meaning uniforms and constants are before state variables). Instead of checking if the parameter is a state variable for every element, teach all functions to handle non-state parameters safely. This is better for the most common case where parameters are sorted or semi-sorted. The new enum STATE_NOT_STATE_VAR identifes that a parameter is not a state variable. Fixes: 63f7d7dd - mesa: take advantage of sorted parameters in _mesa_load_state_parameters Closes: mesa/mesa#3914 Reviewed-by: Zoltán Böszörményi <zboszor@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net> Part-of: <mesa/mesa!8046>
23dc21b9