Lines Matching refs:pCB

52 void CoreChecks::SetLayout(layer_data *device_data, GLOBAL_CB_NODE *pCB, ImageSubresourcePair imgpa…  in SetLayout()  argument
54 auto it = pCB->imageLayoutMap.find(imgpair); in SetLayout()
55 if (it != pCB->imageLayoutMap.end()) { in SetLayout()
60 if (!FindCmdBufLayout(device_data, pCB, imgpair.image, imgpair.subresource, node)) { in SetLayout()
63 SetLayout(device_data, pCB, imgpair, {node.initialLayout, layout}); in SetLayout()
102 bool CoreChecks::FindLayoutVerifyNode(layer_data const *device_data, GLOBAL_CB_NODE const *pCB, Ima… in FindLayoutVerifyNode() argument
109 auto imgsubIt = pCB->imageLayoutMap.find(imgpair); in FindLayoutVerifyNode()
110 if (imgsubIt == pCB->imageLayoutMap.end()) { in FindLayoutVerifyNode()
155 bool CoreChecks::FindCmdBufLayout(layer_data const *device_data, GLOBAL_CB_NODE const *pCB, VkImage… in FindCmdBufLayout() argument
159 FindLayoutVerifyNode(device_data, pCB, imgpair, node, VK_IMAGE_ASPECT_COLOR_BIT); in FindCmdBufLayout()
160 FindLayoutVerifyNode(device_data, pCB, imgpair, node, VK_IMAGE_ASPECT_DEPTH_BIT); in FindCmdBufLayout()
161 FindLayoutVerifyNode(device_data, pCB, imgpair, node, VK_IMAGE_ASPECT_STENCIL_BIT); in FindCmdBufLayout()
162 FindLayoutVerifyNode(device_data, pCB, imgpair, node, VK_IMAGE_ASPECT_METADATA_BIT); in FindCmdBufLayout()
164 FindLayoutVerifyNode(device_data, pCB, imgpair, node, VK_IMAGE_ASPECT_PLANE_0_BIT_KHR); in FindCmdBufLayout()
165 FindLayoutVerifyNode(device_data, pCB, imgpair, node, VK_IMAGE_ASPECT_PLANE_1_BIT_KHR); in FindCmdBufLayout()
166 FindLayoutVerifyNode(device_data, pCB, imgpair, node, VK_IMAGE_ASPECT_PLANE_2_BIT_KHR); in FindCmdBufLayout()
170 auto imgsubIt = pCB->imageLayoutMap.find(imgpair); in FindCmdBufLayout()
171 if (imgsubIt == pCB->imageLayoutMap.end()) return false; in FindCmdBufLayout()
275 void CoreChecks::SetLayout(layer_data *device_data, GLOBAL_CB_NODE *pCB, ImageSubresourcePair imgpa… in SetLayout() argument
277 auto it = pCB->imageLayoutMap.find(imgpair); in SetLayout()
278 if (it != pCB->imageLayoutMap.end()) { in SetLayout()
281 pCB->imageLayoutMap[imgpair] = node; // Insert in SetLayout()
455 … GLOBAL_CB_NODE *pCB, const VkRenderPassBeginInfo *pRenderPassBegin, in VerifyFramebufferAndRenderPassLayouts() argument
466 HandleToUint64(pCB->commandBuffer), kVUID_Core_DrawState_InvalidRenderpass, in VerifyFramebufferAndRenderPassLayouts()
495 if (!FindCmdBufLayout(device_data, pCB, image, sub, node)) { in VerifyFramebufferAndRenderPassLayouts()
572 void CoreChecks::TransitionAttachmentRefLayout(layer_data *device_data, GLOBAL_CB_NODE *pCB, FRAMEB… in TransitionAttachmentRefLayout() argument
577 SetImageViewLayout(device_data, pCB, image_view, ref.layout); in TransitionAttachmentRefLayout()
582 void CoreChecks::TransitionSubpassLayouts(layer_data *device_data, GLOBAL_CB_NODE *pCB, const RENDE… in TransitionSubpassLayouts() argument
589 … TransitionAttachmentRefLayout(device_data, pCB, framebuffer_state, subpass.pInputAttachments[j]); in TransitionSubpassLayouts()
592 … TransitionAttachmentRefLayout(device_data, pCB, framebuffer_state, subpass.pColorAttachments[j]); in TransitionSubpassLayouts()
595 …TransitionAttachmentRefLayout(device_data, pCB, framebuffer_state, *subpass.pDepthStencilAttachmen… in TransitionSubpassLayouts()
600 bool CoreChecks::ValidateImageAspectLayout(layer_data *device_data, GLOBAL_CB_NODE const *pCB, in ValidateImageAspectLayout() argument
608 if (!FindCmdBufLayout(device_data, pCB, mem_barrier->image, sub, node)) { in ValidateImageAspectLayout()
617 HandleToUint64(pCB->commandBuffer), "VUID-VkImageMemoryBarrier-oldLayout-01197", in ValidateImageAspectLayout()
643 void CoreChecks::TransitionImageAspectLayout(layer_data *device_data, GLOBAL_CB_NODE *pCB, const Vk… in TransitionImageAspectLayout() argument
651 if (!FindCmdBufLayout(device_data, pCB, mem_barrier->image, sub, node)) { in TransitionImageAspectLayout()
652 pCB->image_layout_change_count++; // Change the version of this data to force revalidation in TransitionImageAspectLayout()
653 SetLayout(device_data, pCB, mem_barrier->image, sub, in TransitionImageAspectLayout()
660 SetLayout(device_data, pCB, mem_barrier->image, sub, mem_barrier->newLayout); in TransitionImageAspectLayout()
1174 void CoreChecks::TransitionFinalSubpassLayouts(layer_data *device_data, GLOBAL_CB_NODE *pCB, in TransitionFinalSubpassLayouts() argument
1185 … SetImageViewLayout(device_data, pCB, view_state, pRenderPassInfo->pAttachments[i].finalLayout); in TransitionFinalSubpassLayouts()
3369 bool CoreChecks::ValidateCmdBufImageLayouts(layer_data *device_data, GLOBAL_CB_NODE *pCB, in ValidateCmdBufImageLayouts() argument
3373 for (auto cb_image_data : pCB->imageLayoutMap) { in ValidateCmdBufImageLayouts()
3384 … HandleToUint64(pCB->commandBuffer), kVUID_Core_DrawState_InvalidImageLayout, in ValidateCmdBufImageLayouts()
3394 HandleToUint64(pCB->commandBuffer), kVUID_Core_DrawState_InvalidImageLayout, in ValidateCmdBufImageLayouts()
3407 void CoreChecks::UpdateCmdBufImageLayouts(layer_data *device_data, GLOBAL_CB_NODE *pCB) { in UpdateCmdBufImageLayouts() argument
3408 for (auto cb_image_data : pCB->imageLayoutMap) { in UpdateCmdBufImageLayouts()