layers:Check reqs before call to BindImageMemory
authorTobin Ehlis <tobine@google.com>
Thu, 17 Nov 2016 20:51:54 +0000 (13:51 -0700)
committerTobin Ehlis <tobine@google.com>
Thu, 17 Nov 2016 22:34:38 +0000 (15:34 -0700)
commitff3ef1181960319d2268e82dae075726f650c553
tree6b0555fea35e0e0008afef483d1e3960053463c4
parent2eda842d84a02b9d5bfb03d6c26c5f7c00e6e8be
layers:Check reqs before call to BindImageMemory

There's an implicit spec requirement that GetImageMemoryRequirements()
should be called prior to calling BindImageMemory() b/c various return
values from GetImageMemoryRequirements() are expected to be complied
with.

This change adds a warning if GetImageMemoryRequirements() has not
been called prior to BindImageMemory(). In this case it will make the
call itself in order to populate internal state tracking.
layers/core_validation.cpp