anv/apply_pipeline_layout: Add to the bind map instead of replacing it
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 7 Aug 2018 22:29:43 +0000 (15:29 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 17 Aug 2018 15:50:28 +0000 (10:50 -0500)
commit4af1a8c9e46e7a748388cf90efdfb93ba70dd585
treec269baf7c3abf746a2c91429fe5b1dc167244c76
parent320dacb0a051cd1736e0976f70467b68281edfbf
anv/apply_pipeline_layout: Add to the bind map instead of replacing it

This commit makes three changes.  One is to only walk the descriptors once
and set bind map sizes at the same time as filling out the entries.  The
second is to make the pass additive so that we can put stuff in the bind
map before applying the pipeline layout.  Third, we switch to using
designated initializers.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
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_private.h