Lines Matching refs:bindInfo
11918 bool CoreChecks::ValidateBindImageMemory(const VkBindImageMemoryInfo &bindInfo, const char *api_nam… in ValidateBindImageMemory() argument
11920 const IMAGE_STATE *image_state = GetImageState(bindInfo.image); in ValidateBindImageMemory()
11923 uint64_t image_handle = HandleToUint64(bindInfo.image); in ValidateBindImageMemory()
11924 …skip = ValidateSetMemBinding(bindInfo.memory, VulkanTypedHandle(bindInfo.image, kVulkanObjectTypeI… in ValidateBindImageMemory()
11932 api_name, report_data->FormatHandle(bindInfo.image).c_str()); in ValidateBindImageMemory()
11944 api_name, report_data->FormatHandle(bindInfo.image).c_str()); in ValidateBindImageMemory()
11949 const auto mem_info = GetDevMemState(bindInfo.memory); in ValidateBindImageMemory()
11951 …skip |= ValidateInsertImageMemoryRange(bindInfo.image, mem_info, bindInfo.memoryOffset, image_stat… in ValidateBindImageMemory()
11958 if (SafeModulo(bindInfo.memoryOffset, image_state->requirements.alignment) != 0) { in ValidateBindImageMemory()
11964 api_name, bindInfo.memoryOffset, image_state->requirements.alignment); in ValidateBindImageMemory()
11969 …if (image_state->requirements.size > mem_info->alloc_info.allocationSize - bindInfo.memoryOffset) { in ValidateBindImageMemory()
11976 …api_name, mem_info->alloc_info.allocationSize - bindInfo.memoryOffset, image_state->requirements.s… in ValidateBindImageMemory()
11980 …if (mem_info->is_dedicated && ((mem_info->dedicated_image != bindInfo.image) || (bindInfo.memoryOf… in ValidateBindImageMemory()
11990 api_name, report_data->FormatHandle(bindInfo.memory).c_str(), in ValidateBindImageMemory()
11992 … report_data->FormatHandle(bindInfo.image).c_str(), bindInfo.memoryOffset); in ValidateBindImageMemory()
11996 … const auto swapchain_info = lvl_find_in_chain<VkBindImageMemorySwapchainInfoKHR>(bindInfo.pNext); in ValidateBindImageMemory()
11998 if (bindInfo.memory != VK_NULL_HANDLE) { in ValidateBindImageMemory()
12001 report_data->FormatHandle(bindInfo.memory).c_str()); in ValidateBindImageMemory()
12020 report_data->FormatHandle(bindInfo.memory).c_str()); in ValidateBindImageMemory()
12028 VkBindImageMemoryInfo bindInfo = {}; in PreCallValidateBindImageMemory() local
12029 bindInfo.sType = VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO; in PreCallValidateBindImageMemory()
12030 bindInfo.image = image; in PreCallValidateBindImageMemory()
12031 bindInfo.memory = mem; in PreCallValidateBindImageMemory()
12032 bindInfo.memoryOffset = memoryOffset; in PreCallValidateBindImageMemory()
12033 return ValidateBindImageMemory(bindInfo, "vkBindImageMemory()"); in PreCallValidateBindImageMemory()
12036 void ValidationStateTracker::UpdateBindImageMemoryState(const VkBindImageMemoryInfo &bindInfo) { in UpdateBindImageMemoryState() argument
12037 IMAGE_STATE *image_state = GetImageState(bindInfo.image); in UpdateBindImageMemoryState()
12039 … const auto swapchain_info = lvl_find_in_chain<VkBindImageMemorySwapchainInfoKHR>(bindInfo.pNext); in UpdateBindImageMemoryState()
12045 auto mem_info = GetDevMemState(bindInfo.memory); in UpdateBindImageMemoryState()
12047 … InsertImageMemoryRange(bindInfo.image, mem_info, bindInfo.memoryOffset, image_state->requirements, in UpdateBindImageMemoryState()
12052 SetMemBinding(bindInfo.memory, image_state, bindInfo.memoryOffset, in UpdateBindImageMemoryState()
12053 VulkanTypedHandle(bindInfo.image, kVulkanObjectTypeImage)); in UpdateBindImageMemoryState()
12061 VkBindImageMemoryInfo bindInfo = {}; in PostCallRecordBindImageMemory() local
12062 bindInfo.sType = VK_STRUCTURE_TYPE_BIND_IMAGE_MEMORY_INFO; in PostCallRecordBindImageMemory()
12063 bindInfo.image = image; in PostCallRecordBindImageMemory()
12064 bindInfo.memory = mem; in PostCallRecordBindImageMemory()
12065 bindInfo.memoryOffset = memoryOffset; in PostCallRecordBindImageMemory()
12066 UpdateBindImageMemoryState(bindInfo); in PostCallRecordBindImageMemory()
12158 const VkBindSparseInfo &bindInfo = pBindInfo[bindIdx]; in PreCallValidateQueueBindSparse() local
12162 for (uint32_t i = 0; i < bindInfo.waitSemaphoreCount; ++i) { in PreCallValidateQueueBindSparse()
12163 VkSemaphore semaphore = bindInfo.pWaitSemaphores[i]; in PreCallValidateQueueBindSparse()
12181 for (uint32_t i = 0; i < bindInfo.signalSemaphoreCount; ++i) { in PreCallValidateQueueBindSparse()
12182 VkSemaphore semaphore = bindInfo.pSignalSemaphores[i]; in PreCallValidateQueueBindSparse()
12201 for (uint32_t i = 0; i < bindInfo.imageBindCount; ++i) { in PreCallValidateQueueBindSparse()
12202 const auto &image_bind = bindInfo.pImageBinds[i]; in PreCallValidateQueueBindSparse()
12226 for (uint32_t i = 0; i < bindInfo.imageOpaqueBindCount; ++i) { in PreCallValidateQueueBindSparse()
12227 const auto &image_opaque_bind = bindInfo.pImageOpaqueBinds[i]; in PreCallValidateQueueBindSparse()
12228 auto image_state = GetImageState(bindInfo.pImageOpaqueBinds[i].image); in PreCallValidateQueueBindSparse()
12300 const VkBindSparseInfo &bindInfo = pBindInfo[bindIdx]; in PostCallRecordQueueBindSparse() local
12302 for (uint32_t j = 0; j < bindInfo.bufferBindCount; j++) { in PostCallRecordQueueBindSparse()
12303 for (uint32_t k = 0; k < bindInfo.pBufferBinds[j].bindCount; k++) { in PostCallRecordQueueBindSparse()
12304 auto sparse_binding = bindInfo.pBufferBinds[j].pBinds[k]; in PostCallRecordQueueBindSparse()
12306 … VulkanTypedHandle(bindInfo.pBufferBinds[j].buffer, kVulkanObjectTypeBuffer)); in PostCallRecordQueueBindSparse()
12309 for (uint32_t j = 0; j < bindInfo.imageOpaqueBindCount; j++) { in PostCallRecordQueueBindSparse()
12310 for (uint32_t k = 0; k < bindInfo.pImageOpaqueBinds[j].bindCount; k++) { in PostCallRecordQueueBindSparse()
12311 auto sparse_binding = bindInfo.pImageOpaqueBinds[j].pBinds[k]; in PostCallRecordQueueBindSparse()
12313 … VulkanTypedHandle(bindInfo.pImageOpaqueBinds[j].image, kVulkanObjectTypeImage)); in PostCallRecordQueueBindSparse()
12316 for (uint32_t j = 0; j < bindInfo.imageBindCount; j++) { in PostCallRecordQueueBindSparse()
12317 for (uint32_t k = 0; k < bindInfo.pImageBinds[j].bindCount; k++) { in PostCallRecordQueueBindSparse()
12318 auto sparse_binding = bindInfo.pImageBinds[j].pBinds[k]; in PostCallRecordQueueBindSparse()
12322 … VulkanTypedHandle(bindInfo.pImageBinds[j].image, kVulkanObjectTypeImage)); in PostCallRecordQueueBindSparse()
12329 for (uint32_t i = 0; i < bindInfo.waitSemaphoreCount; ++i) { in PostCallRecordQueueBindSparse()
12330 VkSemaphore semaphore = bindInfo.pWaitSemaphores[i]; in PostCallRecordQueueBindSparse()
12349 for (uint32_t i = 0; i < bindInfo.signalSemaphoreCount; ++i) { in PostCallRecordQueueBindSparse()
12350 VkSemaphore semaphore = bindInfo.pSignalSemaphores[i]; in PostCallRecordQueueBindSparse()