anv/pipeline: Sort bindings by most used first
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 21 Feb 2019 00:14:56 +0000 (18:14 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 19 Apr 2019 19:56:42 +0000 (19:56 +0000)
commita7d48718466978bd5a6ae73d9cf1c2ea566d772c
treeaebf303c8636cda2aea589aa07263327f92b752f
parenta5a0dc08f18928a080e3393ebc694bc7053216fb
anv/pipeline: Sort bindings by most used first

This commit just sorts the bindings by how often they're used vs the
array size of the binding.  This will let us make more nuanced decisions
about what goes in the binding table vs. what to make bindless.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/intel/vulkan/anv_nir_apply_pipeline_layout.c