anv/pipeline: Store the (set, binding, index) tripple in the bind map
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 6 Jun 2016 18:12:27 +0000 (11:12 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 10 Jun 2016 16:43:07 +0000 (09:43 -0700)
commita1a25db69926604d579139d1d497f1566ec16ac7
tree00c1acf6079b0b7e003a21912e375e9af8ad5203
parentc13c5ac561f6475d08c35d2a88a829e6ce36e98c
anv/pipeline: Store the (set, binding, index) tripple in the bind map

This way the the bind map (which we're caching) is mostly independent of
the pipeline layout.  The only coupling remaining is that we pull the array
size of a binding out of the layout.  However, that size is also specified
in the shader and should always match so it's not really coupled.  This
rendering issues in Dota 2.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_cmd_buffer.c
src/intel/vulkan/anv_nir_apply_pipeline_layout.c
src/intel/vulkan/anv_pipeline.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/gen8_pipeline.c