anv/descriptor_set: Ensure that bindings are always in increasing order
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 6 Jun 2016 16:15:03 +0000 (09:15 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 10 Jun 2016 16:43:03 +0000 (09:43 -0700)
commitc13c5ac561f6475d08c35d2a88a829e6ce36e98c
tree38db16f5939ad77d15dd0c00a0b68b907f9cc60e
parente2265926f25235f9be833984a5e365889a70ea74
anv/descriptor_set: Ensure that bindings are always in increasing order

Since applications are allowed to specify some set of bindings which need
not be dense they also need not be in order.  For most things, this doesn't
matter, but it could result getting the wrong dynamic offsets. This adds a
quick-and-dirty sort to ensure that everything is always in increasing
order of binding index.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_descriptor_set.c