• Home
  • Raw
  • Download

Lines Matching refs:imgpair

52 …d CoreChecks::SetLayout(layer_data *device_data, GLOBAL_CB_NODE *pCB, ImageSubresourcePair imgpair,  in SetLayout()  argument
54 auto it = pCB->imageLayoutMap.find(imgpair); in SetLayout()
58 assert(imgpair.hasSubresource); 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()
70 ImageSubresourcePair imgpair = {image, true, range}; in SetLayout() local
71 SetLayout(device_data, pObject, imgpair, layout, VK_IMAGE_ASPECT_COLOR_BIT); in SetLayout()
72 SetLayout(device_data, pObject, imgpair, layout, VK_IMAGE_ASPECT_DEPTH_BIT); in SetLayout()
73 SetLayout(device_data, pObject, imgpair, layout, VK_IMAGE_ASPECT_STENCIL_BIT); in SetLayout()
74 SetLayout(device_data, pObject, imgpair, layout, VK_IMAGE_ASPECT_METADATA_BIT); in SetLayout()
76 SetLayout(device_data, pObject, imgpair, layout, VK_IMAGE_ASPECT_PLANE_0_BIT_KHR); in SetLayout()
77 SetLayout(device_data, pObject, imgpair, layout, VK_IMAGE_ASPECT_PLANE_1_BIT_KHR); in SetLayout()
78 SetLayout(device_data, pObject, imgpair, layout, VK_IMAGE_ASPECT_PLANE_2_BIT_KHR); in SetLayout()
83 void CoreChecks::SetLayout(layer_data *device_data, OBJECT *pObject, ImageSubresourcePair imgpair, … in SetLayout() argument
85 if (imgpair.subresource.aspectMask & aspectMask) { in SetLayout()
86 imgpair.subresource.aspectMask = aspectMask; in SetLayout()
87 SetLayout(device_data, pObject, imgpair, layout); in SetLayout()
93 ImageSubresourcePair imgpair, VkImageLayout layout) { in SetLayout() argument
94 auto it = imageLayoutMap.find(imgpair); in SetLayout()
98 imageLayoutMap[imgpair].layout = layout; // Insert in SetLayout()
102 …tVerifyNode(layer_data const *device_data, GLOBAL_CB_NODE const *pCB, ImageSubresourcePair imgpair, in FindLayoutVerifyNode() argument
104 if (!(imgpair.subresource.aspectMask & aspectMask)) { in FindLayoutVerifyNode()
107 VkImageAspectFlags oldAspectMask = imgpair.subresource.aspectMask; in FindLayoutVerifyNode()
108 imgpair.subresource.aspectMask = aspectMask; in FindLayoutVerifyNode()
109 auto imgsubIt = pCB->imageLayoutMap.find(imgpair); in FindLayoutVerifyNode()
114 …K_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, HandleToUint64(imgpair.image), in FindLayoutVerifyNode()
117 …report_data->FormatHandle(imgpair.image).c_str(), oldAspectMask, string_VkImageLayout(node.layout), in FindLayoutVerifyNode()
121 …K_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, HandleToUint64(imgpair.image), in FindLayoutVerifyNode()
125 …report_data->FormatHandle(imgpair.image).c_str(), oldAspectMask, string_VkImageLayout(node.initial… in FindLayoutVerifyNode()
132 bool CoreChecks::FindLayoutVerifyLayout(layer_data const *device_data, ImageSubresourcePair imgpair in FindLayoutVerifyLayout() argument
134 if (!(imgpair.subresource.aspectMask & aspectMask)) { in FindLayoutVerifyLayout()
137 VkImageAspectFlags oldAspectMask = imgpair.subresource.aspectMask; in FindLayoutVerifyLayout()
138 imgpair.subresource.aspectMask = aspectMask; in FindLayoutVerifyLayout()
139 auto imgsubIt = (*GetImageLayoutMap()).find(imgpair); in FindLayoutVerifyLayout()
144 …K_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_IMAGE_EXT, HandleToUint64(imgpair.image), in FindLayoutVerifyLayout()
147 … report_data->FormatHandle(imgpair.image).c_str(), oldAspectMask, string_VkImageLayout(layout), in FindLayoutVerifyLayout()
157 ImageSubresourcePair imgpair = {image, true, range}; in FindCmdBufLayout() local
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()
169 imgpair = {image, false, VkImageSubresource()}; in FindCmdBufLayout()
170 auto imgsubIt = pCB->imageLayoutMap.find(imgpair); in FindCmdBufLayout()
179 bool CoreChecks::FindGlobalLayout(layer_data *device_data, ImageSubresourcePair imgpair, VkImageLay… in FindGlobalLayout() argument
181 FindLayoutVerifyLayout(device_data, imgpair, layout, VK_IMAGE_ASPECT_COLOR_BIT); in FindGlobalLayout()
182 FindLayoutVerifyLayout(device_data, imgpair, layout, VK_IMAGE_ASPECT_DEPTH_BIT); in FindGlobalLayout()
183 FindLayoutVerifyLayout(device_data, imgpair, layout, VK_IMAGE_ASPECT_STENCIL_BIT); in FindGlobalLayout()
184 FindLayoutVerifyLayout(device_data, imgpair, layout, VK_IMAGE_ASPECT_METADATA_BIT); in FindGlobalLayout()
186 FindLayoutVerifyLayout(device_data, imgpair, layout, VK_IMAGE_ASPECT_PLANE_0_BIT_KHR); in FindGlobalLayout()
187 FindLayoutVerifyLayout(device_data, imgpair, layout, VK_IMAGE_ASPECT_PLANE_1_BIT_KHR); in FindGlobalLayout()
188 FindLayoutVerifyLayout(device_data, imgpair, layout, VK_IMAGE_ASPECT_PLANE_2_BIT_KHR); in FindGlobalLayout()
191 imgpair = {imgpair.image, false, VkImageSubresource()}; in FindGlobalLayout()
192 auto imgsubIt = (*GetImageLayoutMap()).find(imgpair); in FindGlobalLayout()
220 … ImageSubresourcePair imgpair, VkImageLayout &layout, const VkImageAspectFlags aspectMask) { in FindLayout() argument
221 if (!(imgpair.subresource.aspectMask & aspectMask)) { in FindLayout()
224 imgpair.subresource.aspectMask = aspectMask; in FindLayout()
225 auto imgsubIt = imageLayoutMap.find(imgpair); in FindLayout()
236 ImageSubresourcePair imgpair, VkImageLayout &layout) { in FindLayout() argument
238 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_COLOR_BIT); in FindLayout()
239 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_DEPTH_BIT); in FindLayout()
240 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_STENCIL_BIT); in FindLayout()
241 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_METADATA_BIT); in FindLayout()
243 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_PLANE_0_BIT_KHR); in FindLayout()
244 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_PLANE_1_BIT_KHR); in FindLayout()
245 FindLayout(imageLayoutMap, imgpair, layout, VK_IMAGE_ASPECT_PLANE_2_BIT_KHR); in FindLayout()
249 imgpair = {imgpair.image, false, VkImageSubresource()}; in FindLayout()
250 auto imgsubIt = imageLayoutMap.find(imgpair); in FindLayout()
258 void CoreChecks::SetGlobalLayout(layer_data *device_data, ImageSubresourcePair imgpair, const VkIma… in SetGlobalLayout() argument
259 VkImage &image = imgpair.image; in SetGlobalLayout()
261 auto data = lmap.find(imgpair); in SetGlobalLayout()
265 lmap[imgpair].layout = layout; // Insert in SetGlobalLayout()
268 auto subresource = std::find(image_subresources.begin(), image_subresources.end(), imgpair); in SetGlobalLayout()
270 image_subresources.push_back(imgpair); in SetGlobalLayout()
275 …d CoreChecks::SetLayout(layer_data *device_data, GLOBAL_CB_NODE *pCB, ImageSubresourcePair imgpair, in SetLayout() argument
277 auto it = pCB->imageLayoutMap.find(imgpair); in SetLayout()
281 pCB->imageLayoutMap[imgpair] = node; // Insert in SetLayout()