layers:Refactor barrier validation
authorTobin Ehlis <tobine@google.com>
Mon, 17 Jul 2017 16:14:27 +0000 (10:14 -0600)
committerTobin Ehlis <tobine@google.com>
Tue, 18 Jul 2017 20:08:38 +0000 (14:08 -0600)
commite2d4ce3059fa77badeea63fa2003b83a04ca9c98
tree8cb4624416b09f79f1b3f3c91fd66c3761105bbf
parent419ad93c5e770f7966a3fb11f0d4cbd0a2c9ade6
layers:Refactor barrier validation

Migrate validation for renderpass barrier in CmdPipelineBarrier to its
own function. Refactor some device and command buffer params to avoid
duplicate look-ups. Add some const decls to command buffer state that
shouldn't change down the pre-call path.
layers/buffer_validation.cpp
layers/buffer_validation.h
layers/core_validation.cpp