layers: Add bool to guard command buffer state check
authorTobin Ehlis <tobine@google.com>
Tue, 27 Sep 2016 23:42:58 +0000 (17:42 -0600)
committerTobin Ehlis <tobine@google.com>
Wed, 28 Sep 2016 17:44:37 +0000 (11:44 -0600)
commite85d1c4a6e496743480c086fb16ac118f565bfc2
tree58bd0f15e9d80bd4b8ff32f64768cae5d014dfc0
parent6bf289a3252a9addb6631fda3dc1eaaf72d9bb25
layers: Add bool to guard command buffer state check

This is the first check-in demonstrating the boolean model to allow validation
checks to be disabled. Going forward we'd like to guard all checks in such
bools which can then be set based on VkValidationCheckEXT enum values passed
in at vkCreateInstance() time.

In the course of adding this noticed a bug where instance_state was not getting
initialized in device layer_data at CreateDevice time. Fixed this bug.
layers/core_validation.cpp
layers/core_validation.h