OSDN Git Service

st/nir: count num_uniforms for FS bultin shader
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 27 Feb 2019 06:29:27 +0000 (22:29 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Thu, 28 Feb 2019 06:18:24 +0000 (22:18 -0800)
commit6a553bedcc1093d899944022739578106eca2f30
tree9e1bf4b3cb765e35fbb40fd55296d01fddc0d9d8
parentb344e32cdf7064a1f2ff7ef37027edda6589404f
st/nir: count num_uniforms for FS bultin shader

Usually the uniforms will be assigned locations and have their slots
counted automatically, but for builtin shaders the location assignment
is manual.  So count them too otherwise we get num_uniforms == 0.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/state_tracker/st_pbo.c