layers: PV code gen for FlagBits enum parameters
Extend validate_flags to work in instances where a single Vk*FlagBits
enum value is valid instead of a bitmask with multiple values.
Change-Id: Ib8d34551923f7ecb2549500dfde674fa1094ac8b
diff --git a/layers/parameter_validation.cpp b/layers/parameter_validation.cpp
index 1a32fc9..9f3f0b8 100644
--- a/layers/parameter_validation.cpp
+++ b/layers/parameter_validation.cpp
@@ -3417,7 +3417,7 @@
ParameterName("pCreateInfos[%i].pColorBlendState->pAttachments[%i].colorWriteMask",
ParameterName::IndexVector{i, attachmentIndex}),
"VkColorComponentFlagBits", AllVkColorComponentFlagBits,
- pCreateInfos[i].pColorBlendState->pAttachments[attachmentIndex].colorWriteMask, false);
+ pCreateInfos[i].pColorBlendState->pAttachments[attachmentIndex].colorWriteMask, false, false);
}
}
@@ -4100,7 +4100,7 @@
// VALIDATION_ERROR_02a00072 check
if ((dev_data->physical_device_features.inheritedQueries != VK_FALSE) && (pInfo->occlusionQueryEnable != VK_FALSE)) {
skip |= validate_flags(dev_data->report_data, "vkBeginCommandBuffer", "pBeginInfo->pInheritanceInfo->queryFlags",
- "VkQueryControlFlagBits", AllVkQueryControlFlagBits, pInfo->queryFlags, false);
+ "VkQueryControlFlagBits", AllVkQueryControlFlagBits, pInfo->queryFlags, false, false);
}
}
return skip;
@@ -4135,7 +4135,7 @@
// TODO: This must be 0 if the pipeline statistics queries feature is not enabled
skip |= validate_flags(report_data, "vkBeginCommandBuffer", "pBeginInfo->pInheritanceInfo->pipelineStatistics",
"VkQueryPipelineStatisticFlagBits", AllVkQueryPipelineStatisticFlagBits,
- pBeginInfo->pInheritanceInfo->pipelineStatistics, false);
+ pBeginInfo->pInheritanceInfo->pipelineStatistics, false, false);
}
skip |= PreBeginCommandBuffer(device_data, commandBuffer, pBeginInfo);