layers:Generalize validateRenderPassCompatibility
authorTobin Ehlis <tobine@google.com>
Wed, 6 Sep 2017 16:46:41 +0000 (10:46 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 7 Sep 2017 20:32:12 +0000 (14:32 -0600)
commit8314731f09da9236ac18da424af3e616d4867d15
tree3b945d7c1b36ec27ee71c6280506ba398d5a9861
parent5d8129ad3e59cca1d0940e48448a4c65417b8a20
layers:Generalize validateRenderPassCompatibility

We have 2 separate function for checking render pass compatibility that
are nearly identical. This change is refactoring one of the functions
to make it more general-purpose so that it can be used for all of the
render pass compatibility checks. This includes passing through the
caller, a VUID, and some strings for the types of objects that are
having their render passes compared.

Added some temp comments on VUIDs that will be added for various render
pass compatibility checks.
Update framebuffer state struct to store render pass state ptr instead
of just the render pass create info.
layers/core_validation.cpp
layers/core_validation_types.h