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)
commitac339e84be5416fc0211a49d68734389ef41c078
treea38abe7502797dcff18ec672a3e2a4dffa2af028
parent4e96aa8a5cd65bc1c6f29d471f6a1b132cbbed6f
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