mesa/st: Do not rely on name to identify special uniforms
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 21 Aug 2019 16:38:10 +0000 (09:38 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 10 Sep 2019 21:36:46 +0000 (14:36 -0700)
commit1a96811fe1059de097a70121a8d1b905089422fd
tree6269f1fbb8e1a189371875a57cb2abb8cef08797
parent4f33f96c4517f86f6f720f745cd49f8a0754393b
mesa/st: Do not rely on name to identify special uniforms

Every uniform that have the "gl_" name also have some state slots.  So
use the state_slots like we did in 57b61849310 ("i965: account for NIR
uniforms without name").

This removes the dependency on names, which are optional when using
ARB_gl_spirv.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/mesa/state_tracker/st_glsl_to_nir.cpp