anv: Count image param entries rather than images
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 7 Feb 2019 00:02:30 +0000 (18:02 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Mar 2019 16:06:50 +0000 (10:06 -0600)
commit4c50b7c92cd0800e184d2448fbe6b1c5466f5c95
tree4356e524182771e17508ca734fb0d5a98c5c3c4a
parent3822c7495a096195c81652b5a813b6571ae652d4
anv: Count image param entries rather than images

This is what we're actually storing in the descriptor set and consuming
when we bind surface states.  This commit renames image_count to
image_param_count a few places and moves the decision to not count image
params on gen9+ into anv_descriptor_set.c when we build the layout.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/anv_descriptor_set.c
src/intel/vulkan/anv_nir_apply_pipeline_layout.c
src/intel/vulkan/anv_pipeline_cache.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c