diff options
| author | Michael Lentine <mlentine@google.com> | 2016-04-06 13:15:46 -0500 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-04-06 13:23:10 -0600 |
| commit | 3445572c5f5ad564b64c9737dd4ec857e68d1c39 (patch) | |
| tree | 408ab6ecdef31205fa8b00ef116be5331a6efc28 /layers/core_validation.cpp | |
| parent | 60525386aa0ffc23edf68884c572ec47c79b3970 (diff) | |
| download | usermoji-3445572c5f5ad564b64c9737dd4ec857e68d1c39.tar.xz | |
layers: Ensure bind point for subass is graphics.
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index c327aeac..600c784f 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -9306,6 +9306,11 @@ VK_LAYER_EXPORT VKAPI_ATTR VkResult VKAPI_CALL vkCreateRenderPass(VkDevice devic dev_data->renderPassMap[*pRenderPass]->attachment_first_layout; for (uint32_t i = 0; i < pCreateInfo->subpassCount; ++i) { const VkSubpassDescription &subpass = pCreateInfo->pSubpasses[i]; + if (subpass.pipelineBindPoint != VK_PIPELINE_BIND_POINT_GRAPHICS) { + skip_call |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, + __LINE__, DRAWSTATE_INVALID_RENDERPASS, "DS", + "Pipeline bind point for subpass %d must be VK_PIPELINE_BIND_POINT_GRAPHICS.", i); + } for (uint32_t j = 0; j < subpass.preserveAttachmentCount; ++j) { uint32_t attachment = subpass.pPreserveAttachments[j]; if (attachment >= pCreateInfo->attachmentCount) { |
