5acedf5b31
Instead of allocating constants to the FAU entries on a first-come-first-serve basis, it would be more efficient to put the most frequently used constants in the FAU so we save the most amount of ADD_IMM to push constants into registers. This commit does so using a simple pass before the main constant lowering pass. Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36872>