i965/fs: Execute nir_setup_uniforms, _inputs and _outputs unconditionally.
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 28 Jun 2015 18:15:28 +0000 (21:15 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 29 Jul 2015 11:12:50 +0000 (14:12 +0300)
commitb5f1a48e234d47b24df38cb562cffb8941d43795
treeacae972bb6b93e4624e74778e2e8bd3c7ba3bd34
parent3e5a90792d14aeb599dd236f830e6e344b35c905
i965/fs: Execute nir_setup_uniforms, _inputs and _outputs unconditionally.

Images take up zero uniform slots in the nir_shader::num_uniforms
calculation, but nir_setup_uniforms needs to be executed even if the
program has no non-image uniforms so the driver-specific image
parameters are uploaded.  nir_setup_uniforms is a no-op if there are
really no uniforms, so checking the num_uniform count is useless in
any case.

The nir_setup_inputs and _outputs changes shouldn't lead to any
functional change, they are just meant to preserve the symmetry
between them and nir_setup_uniforms.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp