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)
commitc264142df95edb7eb96b5dc2d87562efce6ded43
tree26aa9bd45227c280d72493d705a45e96fa72154a
parent75b0d6603382dcb3e3de24c11ea6e4aa2ef8b4d2
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