From 3445572c5f5ad564b64c9737dd4ec857e68d1c39 Mon Sep 17 00:00:00 2001 From: Michael Lentine Date: Wed, 6 Apr 2016 13:15:46 -0500 Subject: [PATCH] layers: Ensure bind point for subass is graphics. --- layers/core_validation.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index c327aea..600c784 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) { -- 2.7.4