layers: Add sType VUIDs to Parameter Validation
- Updated validation check to accept VUID
- Modified PV codegen to calculate VUIDs for sType checks
- Modified PV codegen to verify VUIDs are valid enums before using
- Updated error database for 65 new VUIDs covered
Change-Id: Ia964822d5a12db0da9c8b425e0ccb72d1bd550a8
diff --git a/layers/parameter_validation.cpp b/layers/parameter_validation.cpp
index 306e504..a1d641e 100644
--- a/layers/parameter_validation.cpp
+++ b/layers/parameter_validation.cpp
@@ -3049,7 +3049,7 @@
// TODO: pBeginInfo->pInheritanceInfo must not be NULL if commandBuffer is a secondary command buffer
skip |= validate_struct_type(report_data, "vkBeginCommandBuffer", "pBeginInfo->pInheritanceInfo",
"VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO", pBeginInfo->pInheritanceInfo,
- VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO, false);
+ VK_STRUCTURE_TYPE_COMMAND_BUFFER_INHERITANCE_INFO, false, VALIDATION_ERROR_UNDEFINED);
if (pBeginInfo->pInheritanceInfo != NULL) {
skip |= validate_struct_pnext(report_data, "vkBeginCommandBuffer", "pBeginInfo->pInheritanceInfo->pNext", NULL,