layers:Check all memory bindings
authorTobin Ehlis <tobine@google.com>
Tue, 15 Nov 2016 22:37:18 +0000 (15:37 -0700)
committerTobin Ehlis <tobine@google.com>
Thu, 17 Nov 2016 22:34:38 +0000 (15:34 -0700)
commit618106078fdbe4b4b38f5be26b372a9126060cba
tree320fb09524e58fb69e8173eeb016399f8442f810
parent234620548fe22f5b2004cc1221b91703466b8b12
layers:Check all memory bindings

There are a few places in the code where we assume that an image or
buffer doesn't have a sparse binding. These cases break with sparse
bindings.

To fix I added a function to BINDING class to retrieve all memory
bindings and then updated a few spots with bad assumption to make use
of this new GetBoundMemory() function.
layers/core_validation.cpp
layers/core_validation_types.h
layers/descriptor_sets.cpp