diff options
| author | Mark Lobodzinski <mark@lunarg.com> | 2017-06-26 16:27:15 -0600 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2017-06-28 10:57:05 -0600 |
| commit | 7c32e6842579a5d3a27ed1b0108257bc3efee42e (patch) | |
| tree | b630b990e88de07ff5e3d2d7640b25eca7c0d0cb /layers/parameter_validation.cpp | |
| parent | 0e0acda882ce2a64d50f78517296ccea6a7058ac (diff) | |
| download | usermoji-7c32e6842579a5d3a27ed1b0108257bc3efee42e.tar.xz | |
layers: Plumb in PV implicit requiredbits vuids
Change-Id: I6a9296d7f7bd73bf90855b32c522ab9d2b8bb04a
Diffstat (limited to 'layers/parameter_validation.cpp')
| -rw-r--r-- | layers/parameter_validation.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/layers/parameter_validation.cpp b/layers/parameter_validation.cpp index ea56552a..f9fff6c7 100644 --- a/layers/parameter_validation.cpp +++ b/layers/parameter_validation.cpp @@ -2320,12 +2320,13 @@ VKAPI_ATTR VkResult VKAPI_CALL CreateGraphicsPipelines(VkDevice device, VkPipeli "VkBlendOp", VK_BLEND_OP_BEGIN_RANGE, VK_BLEND_OP_END_RANGE, pCreateInfos[i].pColorBlendState->pAttachments[attachmentIndex].alphaBlendOp); - skip |= validate_flags( - report_data, "vkCreateGraphicsPipelines", - ParameterName("pCreateInfos[%i].pColorBlendState->pAttachments[%i].colorWriteMask", - ParameterName::IndexVector{i, attachmentIndex}), - "VkColorComponentFlagBits", AllVkColorComponentFlagBits, - pCreateInfos[i].pColorBlendState->pAttachments[attachmentIndex].colorWriteMask, false, false); + skip |= + validate_flags(report_data, "vkCreateGraphicsPipelines", + ParameterName("pCreateInfos[%i].pColorBlendState->pAttachments[%i].colorWriteMask", + ParameterName::IndexVector{i, attachmentIndex}), + "VkColorComponentFlagBits", AllVkColorComponentFlagBits, + pCreateInfos[i].pColorBlendState->pAttachments[attachmentIndex].colorWriteMask, + false, false, VALIDATION_ERROR_UNDEFINED); } } @@ -3027,10 +3028,10 @@ static bool PreBeginCommandBuffer(layer_data *dev_data, VkCommandBuffer commandB "inheritedQueries. %s", validation_error_map[VALIDATION_ERROR_02a00070]); } - // 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, false); + "VkQueryControlFlagBits", AllVkQueryControlFlagBits, pInfo->queryFlags, false, false, + VALIDATION_ERROR_02a00072); } } return skip; @@ -3066,7 +3067,7 @@ VKAPI_ATTR VkResult VKAPI_CALL BeginCommandBuffer(VkCommandBuffer commandBuffer, // 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, false); + pBeginInfo->pInheritanceInfo->pipelineStatistics, false, false, VALIDATION_ERROR_UNDEFINED); } skip |= PreBeginCommandBuffer(device_data, commandBuffer, pBeginInfo); |
