Lines Matching refs:info
76 const VkImportAndroidHardwareBufferInfoANDROID* info, in importAndroidHardwareBuffer() argument
379 auto info = it->second; in GOLDFISH_VK_LIST_TRIVIAL_HANDLE_TYPES() local
389 auto info = it->second; in unregister_VkDevice() local
399 auto& info = it->second; in unregister_VkCommandBuffer() local
401 info.lastUsedEncoderPtr ? in unregister_VkCommandBuffer()
402 *(info.lastUsedEncoderPtr) : nullptr; in unregister_VkCommandBuffer()
405 delete info.lastUsedEncoderPtr; in unregister_VkCommandBuffer()
406 info.lastUsedEncoderPtr = nullptr; in unregister_VkCommandBuffer()
417 auto& info = it->second; in unregister_VkQueue() local
419 info.lastUsedEncoderPtr ? in unregister_VkQueue()
420 *(info.lastUsedEncoderPtr) : nullptr; in unregister_VkQueue()
423 delete info.lastUsedEncoderPtr; in unregister_VkQueue()
424 info.lastUsedEncoderPtr = nullptr; in unregister_VkQueue()
547 auto& info = it->second; in initDescriptorSetStateLocked() local
549 info.allocedSets.insert(sets[i]); in initDescriptorSetStateLocked()
644 const auto& info = it->second; in descriptorPoolSupportsIndividualFreeLocked() local
647 info.createFlags; in descriptorPoolSupportsIndividualFreeLocked()
654 const auto& info = it->second; in descriptorSetReallyAllocedFromPoolLocked() local
656 if (pool != info.pool) return false; in descriptorSetReallyAllocedFromPoolLocked()
658 auto poolIt = info_VkDescriptorPool.find(info.pool); in descriptorSetReallyAllocedFromPoolLocked()
675 auto& info = info_VkInstance[instance]; in setInstanceInfo() local
676 info.highestApiVersion = apiVersion; in setInstanceInfo()
681 info.enabledExtensions.insert(ppEnabledExtensionNames[i]); in setInstanceInfo()
692 auto& info = info_VkDevice[device]; in setDeviceInfo() local
693 info.physdev = physdev; in setDeviceInfo()
694 info.props = props; in setDeviceInfo()
695 info.memProps = memProps; in setDeviceInfo()
700 info.apiVersion = props.apiVersion; in setDeviceInfo()
705 info.enabledExtensions.insert(ppEnabledExtensionNames[i]); in setDeviceInfo()
719 auto& info = info_VkDeviceMemory[memory]; in setDeviceMemoryInfo() local
721 info.allocationSize = allocationSize; in setDeviceMemoryInfo()
722 info.mappedSize = mappedSize; in setDeviceMemoryInfo()
723 info.mappedPtr = ptr; in setDeviceMemoryInfo()
724 info.memoryTypeIndex = memoryTypeIndex; in setDeviceMemoryInfo()
725 info.ahw = ahw; in setDeviceMemoryInfo()
726 info.vmoHandle = vmoHandle; in setDeviceMemoryInfo()
733 auto& info = info_VkImage[image]; in setImageInfo() local
735 info.device = device; in setImageInfo()
736 info.createInfo = *pCreateInfo; in setImageInfo()
745 const auto& info = it->second; in isMemoryTypeHostVisible() local
746 return info.memProps.memoryTypes[typeIndex].propertyFlags & in isMemoryTypeHostVisible()
755 const auto& info = it->second; in getMappedPointer() local
756 return info.mappedPtr; in getMappedPointer()
764 const auto& info = it->second; in getMappedSize() local
765 return info.mappedSize; in getMappedSize()
772 const auto& info = it->second; in getNonCoherentExtendedSize() local
775 info.props.limits.nonCoherentAtomSize; in getNonCoherentExtendedSize()
785 const auto& info = it->second; in isValidMemoryRange() local
787 if (!info.mappedPtr) return false; in isValidMemoryRange()
793 return offset <= info.mappedSize; in isValidMemoryRange()
796 return offset + size <= info.mappedSize; in isValidMemoryRange()
929 const auto& info = it->second; in deviceMemoryTransform_tohost() local
931 if (!info.directMapped) continue; in deviceMemoryTransform_tohost()
933 memory[i] = info.subAlloc.baseMemory; in deviceMemoryTransform_tohost()
936 offset[i] = info.subAlloc.baseOffset + offset[i]; in deviceMemoryTransform_tohost()
941 size[i] = info.subAlloc.subMappedSize; in deviceMemoryTransform_tohost()
1307 auto& info = it->second; in on_vkEnumeratePhysicalDevices() local
1310 if (info.physicalDevices.empty()) { in on_vkEnumeratePhysicalDevices()
1324 info.physicalDevices.resize(hostPhysicalDeviceCount); in on_vkEnumeratePhysicalDevices()
1328 instance, &hostPhysicalDeviceCount, info.physicalDevices.data()); in on_vkEnumeratePhysicalDevices()
1355 *pPhysicalDeviceCount = (uint32_t)info.physicalDevices.size(); in on_vkEnumeratePhysicalDevices()
1358 uint32_t actualDeviceCount = (uint32_t)info.physicalDevices.size(); in on_vkEnumeratePhysicalDevices()
1362 pPhysicalDevices[i] = info.physicalDevices[i]; in on_vkEnumeratePhysicalDevices()
1483 auto info = it->second; in on_vkDestroyDevice_pre() local
1492 for (auto& block : info.hostMemBlocks[i]) { in on_vkDestroyDevice_pre()
1536 auto& info = memoryIt->second; in on_vkGetMemoryAndroidHardwareBufferANDROID() local
1539 getMemoryAndroidHardwareBufferANDROID(&info.ahw); in on_vkGetMemoryAndroidHardwareBufferANDROID()
1543 *pBuffer = info.ahw; in on_vkGetMemoryAndroidHardwareBufferANDROID()
1572 auto& info = memoryIt->second; in on_vkGetMemoryZirconHandleFUCHSIA() local
1574 if (info.vmoHandle == ZX_HANDLE_INVALID) { in on_vkGetMemoryZirconHandleFUCHSIA()
1580 zx_handle_duplicate(info.vmoHandle, ZX_RIGHT_SAME_RIGHTS, pHandle); in on_vkGetMemoryZirconHandleFUCHSIA()
1602 auto& info = deviceIt->second; in on_vkGetMemoryZirconHandlePropertiesFUCHSIA() local
1606 for (uint32_t i = 0; i < info.memProps.memoryTypeCount; ++i) { in on_vkGetMemoryZirconHandlePropertiesFUCHSIA()
1607 if (info.memProps.memoryTypes[i].propertyFlags & in on_vkGetMemoryZirconHandlePropertiesFUCHSIA()
1637 auto& info = semaphoreIt->second; in on_vkImportSemaphoreZirconHandleFUCHSIA() local
1639 if (info.eventHandle != ZX_HANDLE_INVALID) { in on_vkImportSemaphoreZirconHandleFUCHSIA()
1640 zx_handle_close(info.eventHandle); in on_vkImportSemaphoreZirconHandleFUCHSIA()
1642 info.eventHandle = pInfo->handle; in on_vkImportSemaphoreZirconHandleFUCHSIA()
1670 auto& info = semaphoreIt->second; in on_vkGetSemaphoreZirconHandleFUCHSIA() local
1672 if (info.eventHandle == ZX_HANDLE_INVALID) { in on_vkGetSemaphoreZirconHandleFUCHSIA()
1677 zx_handle_duplicate(info.eventHandle, ZX_RIGHT_SAME_RIGHTS, pHandle); in on_vkGetSemaphoreZirconHandleFUCHSIA()
1962 llcpp::fuchsia::sysmem::BufferCollectionInfo_2 info = in on_vkGetBufferCollectionPropertiesFUCHSIA() local
1965 if (!info.settings.has_image_format_constraints) { in on_vkGetBufferCollectionPropertiesFUCHSIA()
1968 pProperties->count = info.buffer_count; in on_vkGetBufferCollectionPropertiesFUCHSIA()
2285 const auto& info = it->second; in on_vkAllocateMemory() local
2286 const auto& imgCi = info.createInfo; in on_vkAllocateMemory()
2301 const auto& info = it->second; in on_vkAllocateMemory() local
2302 const auto& bufCi = info.createInfo; in on_vkAllocateMemory()
2355 llcpp::fuchsia::sysmem::BufferCollectionInfo_2& info = in on_vkAllocateMemory() local
2358 if (info.buffer_count < index) { in on_vkAllocateMemory()
2362 vmo_handle = info.buffers[index].vmo.release(); in on_vkAllocateMemory()
2491 llcpp::fuchsia::sysmem::BufferCollectionInfo_2& info = in on_vkAllocateMemory() local
2493 if (!info.buffer_count) { in on_vkAllocateMemory()
2497 info.buffer_count); in on_vkAllocateMemory()
2500 vmo_handle = info.buffers[0].vmo.release(); in on_vkAllocateMemory()
2731 auto& info = it->second; in on_vkFreeMemory() local
2733 if (!info.directMapped) { in on_vkFreeMemory()
2740 subFreeHostMemory(&info.subAlloc); in on_vkFreeMemory()
2760 auto& info = it->second; in on_vkMapMemory() local
2762 if (!info.mappedPtr) return VK_ERROR_MEMORY_MAP_FAILED; in on_vkMapMemory()
2765 (info.mappedPtr + offset + size > info.mappedPtr + info.allocationSize)) { in on_vkMapMemory()
2769 *ppData = info.mappedPtr + offset; in on_vkMapMemory()
2832 auto& info = it->second; in transformImageMemoryRequirementsForGuestLocked() local
2834 if (!info.external || in transformImageMemoryRequirementsForGuestLocked()
2835 !info.externalCreateInfo.handleTypes) { in transformImageMemoryRequirementsForGuestLocked()
2850 auto& info = it->second; in transformBufferMemoryRequirementsForGuestLocked() local
2852 if (!info.external || in transformBufferMemoryRequirementsForGuestLocked()
2853 !info.externalCreateInfo.handleTypes) { in transformBufferMemoryRequirementsForGuestLocked()
2870 auto& info = it->second; in transformImageMemoryRequirements2ForGuest() local
2872 if (!info.external || in transformImageMemoryRequirements2ForGuest()
2873 !info.externalCreateInfo.handleTypes) { in transformImageMemoryRequirements2ForGuest()
2902 auto& info = it->second; in transformBufferMemoryRequirements2ForGuest() local
2904 if (!info.external || in transformBufferMemoryRequirements2ForGuest()
2905 !info.externalCreateInfo.handleTypes) { in transformBufferMemoryRequirements2ForGuest()
2985 llcpp::fuchsia::sysmem::BufferCollectionInfo_2 info; in on_vkCreateImage() local
2989 info = std::move(result.Unwrap()->buffer_collection_info); in on_vkCreateImage()
2990 if (index < info.buffer_count && info.settings.has_image_format_constraints) { in on_vkCreateImage()
2991 vmo = std::move(info.buffers[index].vmo); in on_vkCreateImage()
3001 info.settings.image_format_constraints.min_coded_width, in on_vkCreateImage()
3002 info.settings.image_format_constraints.min_coded_height, in on_vkCreateImage()
3003 info.settings.image_format_constraints.pixel_format.type == in on_vkCreateImage()
3034 auto& info = it->second; in on_vkCreateImage() local
3036 info.device = device; in on_vkCreateImage()
3037 info.createInfo = *pCreateInfo; in on_vkCreateImage()
3038 info.createInfo.pNext = nullptr; in on_vkCreateImage()
3041 info.baseRequirementsKnown = true; in on_vkCreateImage()
3045 info.external = true; in on_vkCreateImage()
3046 info.externalCreateInfo = *extImgCiPtr; in on_vkCreateImage()
3051 info.isSysmemBackedMemory = true; in on_vkCreateImage()
3055 if (info.baseRequirementsKnown) { in on_vkCreateImage()
3057 info.baseRequirements = memReqs; in on_vkCreateImage()
3264 auto& info = it->second; in on_vkCreateFence() local
3266 info.external = true; in on_vkCreateFence()
3267 info.exportFenceCreateInfo = *exportFenceInfoPtr; in on_vkCreateFence()
3307 auto& info = it->second; in on_vkResetFences() local
3308 if (!info.external) continue; in on_vkResetFences()
3311 if (info.syncFd >= 0) { in on_vkResetFences()
3313 goldfish_sync_signal(info.syncFd); in on_vkResetFences()
3314 close(info.syncFd); in on_vkResetFences()
3315 info.syncFd = -1; in on_vkResetFences()
3359 auto& info = it->second; in on_vkImportFenceFdKHR() local
3361 if (info.syncFd >= 0) { in on_vkImportFenceFdKHR()
3363 goldfish_sync_signal(info.syncFd); in on_vkImportFenceFdKHR()
3364 close(info.syncFd); in on_vkImportFenceFdKHR()
3369 info.syncFd = -1; in on_vkImportFenceFdKHR()
3372 info.syncFd = dup(pImportFenceFdInfo->fd); in on_vkImportFenceFdKHR()
3434 auto& info = it->second; in on_vkGetFenceFdKHR() local
3437 info.external && in on_vkGetFenceFdKHR()
3438 (info.exportFenceCreateInfo.handleTypes & in on_vkGetFenceFdKHR()
3452 info.syncFd = -1; in on_vkGetFenceFdKHR()
3483 const auto& info = it->second; in on_vkWaitForFences() local
3484 if (info.syncFd >= 0) { in on_vkWaitForFences()
3486 fencesExternalWaitFds.push_back(info.syncFd); in on_vkWaitForFences()
3565 auto &info = it->second; in on_vkCreateDescriptorPool() local
3566 info.createFlags = pCreateInfo->flags; in on_vkCreateDescriptorPool()
3675 auto& info = it->second; in on_vkCreateDescriptorSetLayout() local
3677 info.bindings.push_back(pCreateInfo->pBindings[i]); in on_vkCreateDescriptorSetLayout()
3725 auto& info = it->second; in setMemoryRequirementsForSysmemBackedImage() local
3726 if (info.isSysmemBackedMemory) { in setMemoryRequirementsForSysmemBackedImage()
3727 auto width = info.createInfo.extent.width; in setMemoryRequirementsForSysmemBackedImage()
3728 auto height = info.createInfo.extent.height; in setMemoryRequirementsForSysmemBackedImage()
3747 auto& info = it->second; in on_vkGetImageMemoryRequirements() local
3749 if (info.baseRequirementsKnown) { in on_vkGetImageMemoryRequirements()
3750 *pMemoryRequirements = info.baseRequirements; in on_vkGetImageMemoryRequirements()
3766 info.baseRequirementsKnown = true; in on_vkGetImageMemoryRequirements()
3767 info.baseRequirements = *pMemoryRequirements; in on_vkGetImageMemoryRequirements()
3843 auto& info = result.Unwrap()->buffer_collection_info; in on_vkCreateBuffer() local
3844 if (index < info.buffer_count) { in on_vkCreateBuffer()
3846 std::move(info.buffers[index].vmo)); in on_vkCreateBuffer()
3883 auto& info = it->second; in on_vkCreateBuffer() local
3885 info.createInfo = *pCreateInfo; in on_vkCreateBuffer()
3886 info.createInfo.pNext = nullptr; in on_vkCreateBuffer()
3889 info.baseRequirementsKnown = true; in on_vkCreateBuffer()
3896 info.external = true; in on_vkCreateBuffer()
3897 info.externalCreateInfo = *extBufCi; in on_vkCreateBuffer()
3902 info.isSysmemBackedMemory = true; in on_vkCreateBuffer()
3906 if (info.baseRequirementsKnown) { in on_vkCreateBuffer()
3908 info.baseRequirements = memReqs; in on_vkCreateBuffer()
3929 auto& info = it->second; in on_vkGetBufferMemoryRequirements() local
3931 if (info.baseRequirementsKnown) { in on_vkGetBufferMemoryRequirements()
3932 *pMemoryRequirements = info.baseRequirements; in on_vkGetBufferMemoryRequirements()
3946 info.baseRequirementsKnown = true; in on_vkGetBufferMemoryRequirements()
3947 info.baseRequirements = *pMemoryRequirements; in on_vkGetBufferMemoryRequirements()
4052 auto& info = it->second; in on_vkCreateSemaphore() local
4054 info.device = device; in on_vkCreateSemaphore()
4055 info.eventHandle = event_handle; in on_vkCreateSemaphore()
4069 info.syncFd = syncFd; in on_vkCreateSemaphore()
4141 auto& info = semaphoreIt->second; in on_vkImportSemaphoreFdKHR() local
4143 if (info.syncFd >= 0) { in on_vkImportSemaphoreFdKHR()
4144 close(info.syncFd); in on_vkImportSemaphoreFdKHR()
4147 info.syncFd = pImportSemaphoreFdInfo->fd; in on_vkImportSemaphoreFdKHR()
4290 const auto& info = it->second; in on_vkQueueSubmit() local
4291 if (info.syncFd >= 0) { in on_vkQueueSubmit()
4292 externalFenceFdToSignal = info.syncFd; in on_vkQueueSubmit()
4522 auto& info = it->second; in initDescriptorUpdateTemplateBuffers() local
4533 info.templateEntries.push_back(entry); in initDescriptorUpdateTemplateBuffers()
4538 info.imageInfoEntryIndices.push_back(i); in initDescriptorUpdateTemplateBuffers()
4541 info.bufferInfoEntryIndices.push_back(i); in initDescriptorUpdateTemplateBuffers()
4544 info.bufferViewEntryIndices.push_back(i); in initDescriptorUpdateTemplateBuffers()
4553 info.imageInfos.resize(imageInfosNeeded); in initDescriptorUpdateTemplateBuffers()
4554 info.bufferInfos.resize(bufferInfosNeeded); in initDescriptorUpdateTemplateBuffers()
4555 info.bufferViews.resize(bufferViewsNeeded); in initDescriptorUpdateTemplateBuffers()
4611 auto& info = it->second; in on_vkUpdateDescriptorSetWithTemplate() local
4617 for (const auto& entry : info.templateEntries) { in on_vkUpdateDescriptorSetWithTemplate()
4628 memcpy(((uint8_t*)info.imageInfos.data()) + currImageInfoOffset, in on_vkUpdateDescriptorSetWithTemplate()
4636 memcpy(((uint8_t*)info.bufferInfos.data()) + currBufferInfoOffset, in on_vkUpdateDescriptorSetWithTemplate()
4644 memcpy(((uint8_t*)info.bufferViews.data()) + currBufferViewOffset, in on_vkUpdateDescriptorSetWithTemplate()
4659 (uint32_t)info.imageInfos.size(), in on_vkUpdateDescriptorSetWithTemplate()
4660 (uint32_t)info.bufferInfos.size(), in on_vkUpdateDescriptorSetWithTemplate()
4661 (uint32_t)info.bufferViews.size(), in on_vkUpdateDescriptorSetWithTemplate()
4662 info.imageInfoEntryIndices.data(), in on_vkUpdateDescriptorSetWithTemplate()
4663 info.bufferInfoEntryIndices.data(), in on_vkUpdateDescriptorSetWithTemplate()
4664 info.bufferViewEntryIndices.data(), in on_vkUpdateDescriptorSetWithTemplate()
4665 info.imageInfos.data(), in on_vkUpdateDescriptorSetWithTemplate()
4666 info.bufferInfos.data(), in on_vkUpdateDescriptorSetWithTemplate()
4667 info.bufferViews.data()); in on_vkUpdateDescriptorSetWithTemplate()
4758 auto& info = it->second; in syncEncodersForCommandBuffer() local
4760 if (!info.lastUsedEncoderPtr) { in syncEncodersForCommandBuffer()
4761 info.lastUsedEncoderPtr = new VkEncoder*; in syncEncodersForCommandBuffer()
4762 *(info.lastUsedEncoderPtr) = currentEncoder; in syncEncodersForCommandBuffer()
4765 auto lastUsedEncoderPtr = info.lastUsedEncoderPtr; in syncEncodersForCommandBuffer()
4777 auto oldSeq = info.sequenceNumber; in syncEncodersForCommandBuffer()
4792 auto& info = it->second; in syncEncodersForCommandBuffer() local
4793 if (!info.lastUsedEncoderPtr) return; in syncEncodersForCommandBuffer()
4794 if (!*(info.lastUsedEncoderPtr)) return; in syncEncodersForCommandBuffer()
4796 if (currentEncoder == *(info.lastUsedEncoderPtr)) { in syncEncodersForCommandBuffer()
4797 *(info.lastUsedEncoderPtr) = nullptr; in syncEncodersForCommandBuffer()
4814 auto& info = it->second; in syncEncodersForQueue() local
4816 if (!info.lastUsedEncoderPtr) { in syncEncodersForQueue()
4817 info.lastUsedEncoderPtr = new VkEncoder*; in syncEncodersForQueue()
4818 *(info.lastUsedEncoderPtr) = currentEncoder; in syncEncodersForQueue()
4821 auto lastUsedEncoderPtr = info.lastUsedEncoderPtr; in syncEncodersForQueue()
4833 auto oldSeq = info.sequenceNumber; in syncEncodersForQueue()
4835 info.sequenceNumber += 2; in syncEncodersForQueue()
4852 auto& info = it->second; in syncEncodersForQueue() local
4853 if (!info.lastUsedEncoderPtr) return; in syncEncodersForQueue()
4854 if (!*(info.lastUsedEncoderPtr)) return; in syncEncodersForQueue()
4856 if (currentEncoder == *(info.lastUsedEncoderPtr)) { in syncEncodersForQueue()
4857 *(info.lastUsedEncoderPtr) = nullptr; in syncEncodersForQueue()