Lines Matching refs:it

377         auto it = info_VkInstance.find(instance);  in GOLDFISH_VK_LIST_TRIVIAL_HANDLE_TYPES()  local
378 if (it == info_VkInstance.end()) return; in GOLDFISH_VK_LIST_TRIVIAL_HANDLE_TYPES()
379 auto info = it->second; in GOLDFISH_VK_LIST_TRIVIAL_HANDLE_TYPES()
387 auto it = info_VkDevice.find(device); in unregister_VkDevice() local
388 if (it == info_VkDevice.end()) return; in unregister_VkDevice()
389 auto info = it->second; in unregister_VkDevice()
397 auto it = info_VkCommandBuffer.find(commandBuffer); in unregister_VkCommandBuffer() local
398 if (it == info_VkCommandBuffer.end()) return; in unregister_VkCommandBuffer()
399 auto& info = it->second; in unregister_VkCommandBuffer()
415 auto it = info_VkQueue.find(queue); in unregister_VkQueue() local
416 if (it == info_VkQueue.end()) return; in unregister_VkQueue()
417 auto& info = it->second; in unregister_VkQueue()
433 auto it = info_VkDeviceMemory.find(mem); in unregister_VkDeviceMemory() local
434 if (it == info_VkDeviceMemory.end()) return; in unregister_VkDeviceMemory()
436 auto& memInfo = it->second; in unregister_VkDeviceMemory()
464 auto it = info_VkImage.find(img); in unregister_VkImage() local
465 if (it == info_VkImage.end()) return; in unregister_VkImage()
467 auto& imageInfo = it->second; in unregister_VkImage()
475 auto it = info_VkBuffer.find(buf); in unregister_VkBuffer() local
476 if (it == info_VkBuffer.end()) return; in unregister_VkBuffer()
484 auto it = info_VkSemaphore.find(sem); in unregister_VkSemaphore() local
485 if (it == info_VkSemaphore.end()) return; in unregister_VkSemaphore()
487 auto& semInfo = it->second; in unregister_VkSemaphore()
502 auto it = info_VkFence.find(fence); in unregister_VkFence() local
503 if (it == info_VkFence.end()) return; in unregister_VkFence()
505 auto& fenceInfo = it->second; in unregister_VkFence()
518 auto it = info_VkDescriptorSet.find(set); in unregister_VkDescriptorSet_locked() local
519 if (it == info_VkDescriptorSet.end()) return; in unregister_VkDescriptorSet_locked()
521 const auto& setInfo = it->second; in unregister_VkDescriptorSet_locked()
544 auto it = info_VkDescriptorPool.find(ci->descriptorPool); in initDescriptorSetStateLocked() local
545 if (it == info_VkDescriptorPool.end()) return; in initDescriptorSetStateLocked()
547 auto& info = it->second; in initDescriptorSetStateLocked()
620 auto it = info_VkDescriptorPool.find(pool); in clearDescriptorPoolLocked() local
621 if (it == info_VkDescriptorPool.end()) return; in clearDescriptorPoolLocked()
624 for (auto set : it->second.allocedSets) { in clearDescriptorPoolLocked()
641 auto it = info_VkDescriptorPool.find(pool); in descriptorPoolSupportsIndividualFreeLocked() local
642 if (it == info_VkDescriptorPool.end()) return false; in descriptorPoolSupportsIndividualFreeLocked()
644 const auto& info = it->second; in descriptorPoolSupportsIndividualFreeLocked()
651 auto it = info_VkDescriptorSet.find(set); in descriptorSetReallyAllocedFromPoolLocked() local
652 if (it == info_VkDescriptorSet.end()) return false; in descriptorSetReallyAllocedFromPoolLocked()
654 const auto& info = it->second; in descriptorSetReallyAllocedFromPoolLocked()
741 const auto it = info_VkDevice.find(device); in isMemoryTypeHostVisible() local
743 if (it == info_VkDevice.end()) return false; in isMemoryTypeHostVisible()
745 const auto& info = it->second; in isMemoryTypeHostVisible()
752 const auto it = info_VkDeviceMemory.find(memory); in getMappedPointer() local
753 if (it == info_VkDeviceMemory.end()) return nullptr; in getMappedPointer()
755 const auto& info = it->second; in getMappedPointer()
761 const auto it = info_VkDeviceMemory.find(memory); in getMappedSize() local
762 if (it == info_VkDeviceMemory.end()) return 0; in getMappedSize()
764 const auto& info = it->second; in getMappedSize()
770 const auto it = info_VkDevice.find(device); in getNonCoherentExtendedSize() local
771 if (it == info_VkDevice.end()) return basicSize; in getNonCoherentExtendedSize()
772 const auto& info = it->second; in getNonCoherentExtendedSize()
783 const auto it = info_VkDeviceMemory.find(range.memory); in isValidMemoryRange() local
784 if (it == info_VkDeviceMemory.end()) return false; in isValidMemoryRange()
785 const auto& info = it->second; in isValidMemoryRange()
926 auto it = info_VkDeviceMemory.find(mem); in deviceMemoryTransform_tohost() local
927 if (it == info_VkDeviceMemory.end()) return; in deviceMemoryTransform_tohost()
929 const auto& info = it->second; in deviceMemoryTransform_tohost()
1303 auto it = info_VkInstance.find(instance); in on_vkEnumeratePhysicalDevices() local
1305 if (it == info_VkInstance.end()) return VK_ERROR_INITIALIZATION_FAILED; in on_vkEnumeratePhysicalDevices()
1307 auto& info = it->second; in on_vkEnumeratePhysicalDevices()
1481 auto it = info_VkDevice.find(device); in on_vkDestroyDevice_pre() local
1482 if (it == info_VkDevice.end()) return; in on_vkDestroyDevice_pre()
1483 auto info = it->second; in on_vkDestroyDevice_pre()
2282 auto it = info_VkImage.find( in on_vkAllocateMemory() local
2284 if (it == info_VkImage.end()) return VK_ERROR_INITIALIZATION_FAILED; in on_vkAllocateMemory()
2285 const auto& info = it->second; in on_vkAllocateMemory()
2298 auto it = info_VkBuffer.find( in on_vkAllocateMemory() local
2300 if (it == info_VkBuffer.end()) return VK_ERROR_INITIALIZATION_FAILED; in on_vkAllocateMemory()
2301 const auto& info = it->second; in on_vkAllocateMemory()
2402 auto it = info_VkImage.find(dedicatedAllocInfoPtr->image); in on_vkAllocateMemory() local
2403 if (it == info_VkImage.end()) return VK_ERROR_INITIALIZATION_FAILED; in on_vkAllocateMemory()
2404 const auto& imageInfo = it->second; in on_vkAllocateMemory()
2412 auto it = info_VkBuffer.find(dedicatedAllocInfoPtr->buffer); in on_vkAllocateMemory() local
2413 if (it == info_VkBuffer.end()) in on_vkAllocateMemory()
2415 const auto& bufferInfo = it->second; in on_vkAllocateMemory()
2676 auto it = info_VkDevice.find(device); in on_vkAllocateMemory() local
2677 if (it == info_VkDevice.end()) return VK_ERROR_DEVICE_LOST; in on_vkAllocateMemory()
2678 auto& deviceInfo = it->second; in on_vkAllocateMemory()
2729 auto it = info_VkDeviceMemory.find(memory); in on_vkFreeMemory() local
2730 if (it == info_VkDeviceMemory.end()) return; in on_vkFreeMemory()
2731 auto& info = it->second; in on_vkFreeMemory()
2757 auto it = info_VkDeviceMemory.find(memory); in on_vkMapMemory() local
2758 if (it == info_VkDeviceMemory.end()) return VK_ERROR_MEMORY_MAP_FAILED; in on_vkMapMemory()
2760 auto& info = it->second; in on_vkMapMemory()
2829 auto it = info_VkImage.find(image); in transformImageMemoryRequirementsForGuestLocked() local
2830 if (it == info_VkImage.end()) return; in transformImageMemoryRequirementsForGuestLocked()
2832 auto& info = it->second; in transformImageMemoryRequirementsForGuestLocked()
2847 auto it = info_VkBuffer.find(buffer); in transformBufferMemoryRequirementsForGuestLocked() local
2848 if (it == info_VkBuffer.end()) return; in transformBufferMemoryRequirementsForGuestLocked()
2850 auto& info = it->second; in transformBufferMemoryRequirementsForGuestLocked()
2867 auto it = info_VkImage.find(image); in transformImageMemoryRequirements2ForGuest() local
2868 if (it == info_VkImage.end()) return; in transformImageMemoryRequirements2ForGuest()
2870 auto& info = it->second; in transformImageMemoryRequirements2ForGuest()
2899 auto it = info_VkBuffer.find(buffer); in transformBufferMemoryRequirements2ForGuest() local
2900 if (it == info_VkBuffer.end()) return; in transformBufferMemoryRequirements2ForGuest()
2902 auto& info = it->second; in transformBufferMemoryRequirements2ForGuest()
3031 auto it = info_VkImage.find(*pImage); in on_vkCreateImage() local
3032 if (it == info_VkImage.end()) return VK_ERROR_INITIALIZATION_FAILED; in on_vkCreateImage()
3034 auto& info = it->second; in on_vkCreateImage()
3259 auto it = info_VkFence.find(*pFence); in on_vkCreateFence() local
3261 if (it == info_VkFence.end()) in on_vkCreateFence()
3264 auto& info = it->second; in on_vkCreateFence()
3306 auto it = info_VkFence.find(fence); in on_vkResetFences() local
3307 auto& info = it->second; in on_vkResetFences()
3353 auto it = info_VkFence.find(pImportFenceFdInfo->fence); in on_vkImportFenceFdKHR() local
3354 if (it == info_VkFence.end()) { in on_vkImportFenceFdKHR()
3359 auto& info = it->second; in on_vkImportFenceFdKHR()
3428 auto it = info_VkFence.find(pGetFdInfo->fence); in on_vkGetFenceFdKHR() local
3429 if (it == info_VkFence.end()) { in on_vkGetFenceFdKHR()
3434 auto& info = it->second; in on_vkGetFenceFdKHR()
3481 auto it = info_VkFence.find(pFences[i]); in on_vkWaitForFences() local
3482 if (it == info_VkFence.end()) continue; in on_vkWaitForFences()
3483 const auto& info = it->second; in on_vkWaitForFences()
3562 auto it = info_VkDescriptorPool.find(*pDescriptorPool); in on_vkCreateDescriptorPool() local
3563 if (it == info_VkDescriptorPool.end()) return res; in on_vkCreateDescriptorPool()
3565 auto &info = it->second; in on_vkCreateDescriptorPool()
3672 auto it = info_VkDescriptorSetLayout.find(*pSetLayout); in on_vkCreateDescriptorSetLayout() local
3673 if (it == info_VkDescriptorSetLayout.end()) return res; in on_vkCreateDescriptorSetLayout()
3675 auto& info = it->second; in on_vkCreateDescriptorSetLayout()
3723 auto it = info_VkImage.find(image); in setMemoryRequirementsForSysmemBackedImage() local
3724 if (it == info_VkImage.end()) return; in setMemoryRequirementsForSysmemBackedImage()
3725 auto& info = it->second; in setMemoryRequirementsForSysmemBackedImage()
3744 auto it = info_VkImage.find(image); in on_vkGetImageMemoryRequirements() local
3745 if (it == info_VkImage.end()) return; in on_vkGetImageMemoryRequirements()
3747 auto& info = it->second; in on_vkGetImageMemoryRequirements()
3880 auto it = info_VkBuffer.find(*pBuffer); in on_vkCreateBuffer() local
3881 if (it == info_VkBuffer.end()) return VK_ERROR_INITIALIZATION_FAILED; in on_vkCreateBuffer()
3883 auto& info = it->second; in on_vkCreateBuffer()
3926 auto it = info_VkBuffer.find(buffer); in on_vkGetBufferMemoryRequirements() local
3927 if (it == info_VkBuffer.end()) return; in on_vkGetBufferMemoryRequirements()
3929 auto& info = it->second; in on_vkGetBufferMemoryRequirements()
4049 auto it = info_VkSemaphore.find(*pSemaphore); in on_vkCreateSemaphore() local
4050 if (it == info_VkSemaphore.end()) return VK_ERROR_INITIALIZATION_FAILED; in on_vkCreateSemaphore()
4052 auto& info = it->second; in on_vkCreateSemaphore()
4099 auto it = info_VkSemaphore.find(pGetFdInfo->semaphore); in on_vkGetSemaphoreFdKHR() local
4100 if (it == info_VkSemaphore.end()) return VK_ERROR_OUT_OF_HOST_MEMORY; in on_vkGetSemaphoreFdKHR()
4101 auto& semInfo = it->second; in on_vkGetSemaphoreFdKHR()
4189 auto it = info_VkSemaphore.find(pSubmits[i].pWaitSemaphores[j]); in on_vkQueueSubmit() local
4190 if (it != info_VkSemaphore.end()) { in on_vkQueueSubmit()
4191 auto& semInfo = it->second; in on_vkQueueSubmit()
4207 auto it = info_VkSemaphore.find(pSubmits[i].pSignalSemaphores[j]); in on_vkQueueSubmit() local
4208 if (it != info_VkSemaphore.end()) { in on_vkQueueSubmit()
4209 auto& semInfo = it->second; in on_vkQueueSubmit()
4288 auto it = info_VkFence.find(fence); in on_vkQueueSubmit() local
4289 if (it != info_VkFence.end()) { in on_vkQueueSubmit()
4290 const auto& info = it->second; in on_vkQueueSubmit()
4434 auto it = info_VkDeviceMemory.find(memory); in on_vkMapMemoryIntoAddressSpaceGOOGLE_pre() local
4435 if (it == info_VkDeviceMemory.end()) { in on_vkMapMemoryIntoAddressSpaceGOOGLE_pre()
4439 auto& memInfo = it->second; in on_vkMapMemoryIntoAddressSpaceGOOGLE_pre()
4467 auto it = info_VkDeviceMemory.find(memory); in on_vkMapMemoryIntoAddressSpaceGOOGLE() local
4468 if (it == info_VkDeviceMemory.end()) { in on_vkMapMemoryIntoAddressSpaceGOOGLE()
4472 auto& memInfo = it->second; in on_vkMapMemoryIntoAddressSpaceGOOGLE()
4517 auto it = info_VkDescriptorUpdateTemplate.find(descriptorUpdateTemplate); in initDescriptorUpdateTemplateBuffers() local
4518 if (it == info_VkDescriptorUpdateTemplate.end()) { in initDescriptorUpdateTemplateBuffers()
4522 auto& info = it->second; in initDescriptorUpdateTemplateBuffers()
4606 auto it = info_VkDescriptorUpdateTemplate.find(descriptorUpdateTemplate); in on_vkUpdateDescriptorSetWithTemplate() local
4607 if (it == info_VkDescriptorUpdateTemplate.end()) { in on_vkUpdateDescriptorSetWithTemplate()
4611 auto& info = it->second; in on_vkUpdateDescriptorSetWithTemplate()
4747 for (auto it : callbackCopies) { in onEncoderDeleted() local
4748 it.second(); in onEncoderDeleted()
4755 auto it = info_VkCommandBuffer.find(commandBuffer); in syncEncodersForCommandBuffer() local
4756 if (it == info_VkCommandBuffer.end()) return 0; in syncEncodersForCommandBuffer()
4758 auto& info = it->second; in syncEncodersForCommandBuffer()
4789 auto it = info_VkCommandBuffer.find(commandBuffer); in syncEncodersForCommandBuffer() local
4790 if (it == info_VkCommandBuffer.end()) return; in syncEncodersForCommandBuffer()
4792 auto& info = it->second; in syncEncodersForCommandBuffer()
4811 auto it = info_VkQueue.find(queue); in syncEncodersForQueue() local
4812 if (it == info_VkQueue.end()) return 0; in syncEncodersForQueue()
4814 auto& info = it->second; in syncEncodersForQueue()
4849 auto it = info_VkQueue.find(queue); in syncEncodersForQueue() local
4850 if (it == info_VkQueue.end()) return; in syncEncodersForQueue()
4852 auto& info = it->second; in syncEncodersForQueue()
4943 auto it = info_VkInstance.find(instance); in getApiVersionFromInstance() local
4944 if (it == info_VkInstance.end()) return api; in getApiVersionFromInstance()
4946 api = it->second.highestApiVersion; in getApiVersionFromInstance()
4956 auto it = info_VkDevice.find(device); in getApiVersionFromDevice() local
4957 if (it == info_VkDevice.end()) return api; in getApiVersionFromDevice()
4959 api = it->second.apiVersion; in getApiVersionFromDevice()
4967 auto it = info_VkInstance.find(instance); in hasInstanceExtension() local
4968 if (it == info_VkInstance.end()) return false; in hasInstanceExtension()
4970 return it->second.enabledExtensions.find(name) != in hasInstanceExtension()
4971 it->second.enabledExtensions.end(); in hasInstanceExtension()
4977 auto it = info_VkDevice.find(device); in hasDeviceExtension() local
4978 if (it == info_VkDevice.end()) return false; in hasDeviceExtension()
4980 return it->second.enabledExtensions.find(name) != in hasDeviceExtension()
4981 it->second.enabledExtensions.end(); in hasDeviceExtension()