anv/pipeline: Whack nir->num_uniforms to MAX_PUSH_CONSTANT_SIZE
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 29 Sep 2017 18:09:04 +0000 (11:09 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 13 Oct 2017 05:39:31 +0000 (22:39 -0700)
commit63c938fd1838d372674db70b7ff0199594a85cd0
treece8210536c31794e5810c7cdcde68b93374a40b5
parent4dfb8b3416e2c7c069ac11736362e9dc3860f72c
anv/pipeline: Whack nir->num_uniforms to MAX_PUSH_CONSTANT_SIZE

This way any image uniforms end up having locations higher than
MAX_PUSH_CONSTANT_SIZE.  There's no bug here at the moment, but this
consistency will make the next commit easier.  Also, because
nir_apply_pipeline_layout properly increments nir->num_uniforms when
it expands the param array, we no longer need to stomp it to match
prog_data::nr_params because it already does.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/intel/vulkan/anv_pipeline.c