layers: Update layout compatibility to use stored state
authorTobin Ehlis <tobine@google.com>
Thu, 7 Jul 2016 17:06:26 +0000 (11:06 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 7 Jul 2016 19:43:00 +0000 (13:43 -0600)
commit3a15cc6e35b0bf2182da140bc6c984765d03f74c
tree85deae5b2a073e961119786cc9a1e3936c23420f
parentb868ebe4e8425c3998a45c86388617c2a5822144
layers: Update layout compatibility to use stored state

When checking VkPipelineLayout compatibility, it's possible that the
VkPipelineLayout handle that was bound may have been subsequently deleted.

To account for this, store the PIPELINE_LAYOUT_NODE at bind time and
use that to do the compatibility check.
layers/core_validation.cpp
layers/core_validation.h
layers/core_validation_types.h