Home
last modified time | relevance | path

Searched refs:memoryProperties (Results 1 – 25 of 63) sorted by relevance

123

/third_party/mesa3d/src/vulkan/util/
Dvk_physical_device.c146 pMemoryProperties->memoryHeapCount = props2.memoryProperties.memoryHeapCount; in vk_common_GetPhysicalDeviceMemoryProperties()
148 pMemoryProperties->memoryHeaps[i].flags = props2.memoryProperties.memoryHeaps[i].flags; in vk_common_GetPhysicalDeviceMemoryProperties()
149 pMemoryProperties->memoryHeaps[i].size = props2.memoryProperties.memoryHeaps[i].size; in vk_common_GetPhysicalDeviceMemoryProperties()
152 pMemoryProperties->memoryTypeCount = props2.memoryProperties.memoryTypeCount; in vk_common_GetPhysicalDeviceMemoryProperties()
154 … pMemoryProperties->memoryTypes[i].heapIndex = props2.memoryProperties.memoryTypes[i].heapIndex; in vk_common_GetPhysicalDeviceMemoryProperties()
155 …pMemoryProperties->memoryTypes[i].propertyFlags = props2.memoryProperties.memoryTypes[i].propertyF… in vk_common_GetPhysicalDeviceMemoryProperties()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemWsiSwapchainTests.cpp318 …vk::VkPhysicalDeviceMemoryProperties memoryProperties = vk::getPhysicalDeviceMemoryProperties(cont… in generateSwapchainParameterCases() local
323 for (deUint32 memType = 0; memType < memoryProperties.memoryTypeCount; memType++) in generateSwapchainParameterCases()
325 deUint32 heapIndex = memoryProperties.memoryTypes[memType].heapIndex; in generateSwapchainParameterCases()
328 …(memoryProperties.memoryTypes[memType].propertyFlags & vk::VK_MEMORY_PROPERTY_PROTECTED_BIT) != 0 … in generateSwapchainParameterCases()
332 protectedHeapSize = de::max(protectedHeapSize, memoryProperties.memoryHeaps[heapIndex].size); in generateSwapchainParameterCases()
359 …vk::VkPhysicalDeviceMemoryProperties memoryProperties = vk::getPhysicalDeviceMemoryProperties(cont… in generateSwapchainParameterCases() local
363 for (deUint32 memType = 0; memType < memoryProperties.memoryTypeCount; memType++) in generateSwapchainParameterCases()
365 deUint32 heapIndex = memoryProperties.memoryTypes[memType].heapIndex; in generateSwapchainParameterCases()
367 if (memoryProperties.memoryTypes[memType].propertyFlags & vk::VK_MEMORY_PROPERTY_PROTECTED_BIT) in generateSwapchainParameterCases()
370 protectedHeapSize = de::max(protectedHeapSize, memoryProperties.memoryHeaps[heapIndex].size); in generateSwapchainParameterCases()
[all …]
DvktProtectedMemContext.hpp75 const vk::VkPhysicalDeviceMemoryProperties memoryProperties = in createAllocator() local
79 return new vk::SimpleAllocator(getDeviceInterface(), getDevice(), memoryProperties); in createAllocator()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/android/
Dvk_android_utils.cpp61 VkMemoryPropertyFlags memoryProperties, in InitAndroidExternalMemory() argument
84 contextVk, memoryProperties, externalMemoryRequirements, &importHardwareBufferInfo, buffer, in InitAndroidExternalMemory()
Dvk_android_utils.h30 VkMemoryPropertyFlags memoryProperties,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiBufferViewCreateTests.cpp217 VkPhysicalDeviceMemoryProperties memoryProperties; in createTestBuffer() local
276 deMemset(&memoryProperties, 0, sizeof(memoryProperties)); in createTestBuffer()
277 vkInstance.getPhysicalDeviceMemoryProperties(vkPhysicalDevice, &memoryProperties); in createTestBuffer()
DvktApiBufferTests.cpp203 memoryProperties = getPhysicalDeviceMemoryProperties(vkInstance, vkPhysicalDevice); in bufferCreateAndAllocTest() local
233 const VkMemoryType memoryType = memoryProperties.memoryTypes[heapTypeIndex]; in bufferCreateAndAllocTest()
234 const VkMemoryHeap memoryHeap = memoryProperties.memoryHeaps[memoryType.heapIndex]; in bufferCreateAndAllocTest()
402 memoryProperties = getPhysicalDeviceMemoryProperties(vkInstance, vkPhysicalDevice); in bufferCreateAndAllocTest() local
454 const VkMemoryType memoryType = memoryProperties.memoryTypes[heapTypeIndex]; in bufferCreateAndAllocTest()
455 const VkMemoryHeap memoryHeap = memoryProperties.memoryHeaps[memoryType.heapIndex]; in bufferCreateAndAllocTest()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dvk_utils.cpp60 bool FindCompatibleMemory(const VkPhysicalDeviceMemoryProperties &memoryProperties, in FindCompatibleMemory() argument
68 ASSERT(memoryIndex < memoryProperties.memoryTypeCount); in FindCompatibleMemory()
70 if ((memoryProperties.memoryTypes[memoryIndex].propertyFlags & in FindCompatibleMemory()
73 *memoryPropertyFlagsOut = memoryProperties.memoryTypes[memoryIndex].propertyFlags; in FindCompatibleMemory()
83 const vk::MemoryProperties &memoryProperties, in FindAndAllocateCompatibleMemory() argument
93 ANGLE_TRY(memoryProperties.findCompatibleMemoryIndex( in FindAndAllocateCompatibleMemory()
142 const vk::MemoryProperties &memoryProperties = context->getRenderer()->getMemoryProperties(); in AllocateAndBindBufferOrImageMemory() local
145 context, memoryProperties, requestedMemoryPropertyFlags, memoryPropertyFlagsOut, in AllocateAndBindBufferOrImageMemory()
179 const vk::MemoryProperties &memoryProperties = context->getRenderer()->getMemoryProperties(); in AllocateAndBindBufferOrImageMemory() local
182 context, memoryProperties, requestedMemoryPropertyFlags, memoryPropertyFlagsOut, in AllocateAndBindBufferOrImageMemory()
Dvk_helpers.h854 VkMemoryPropertyFlags memoryProperties,
1520 const MemoryProperties &memoryProperties,
1524 const MemoryProperties &memoryProperties,
1576 const MemoryProperties &memoryProperties,
1588 const MemoryProperties &memoryProperties,
1601 const MemoryProperties &memoryProperties,
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
DvktMemoryRequirementsTests.cpp369 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(vki, p… in execTest() local
405 verifyMemoryRequirements(result, memoryProperties, limits, bufferFlags, usage); in execTest()
1487 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(vki, … in execTest() local
1552 verifyMemoryRequirements(result, memoryProperties); in execTest()
1920 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(vki, p… in testMultiplaneImages() local
1924 log << TestLog::Message << "Memory properties: " << memoryProperties << TestLog::EndMessage; in testMultiplaneImages()
2008 …if (result.check(memoryTypeIndex < memoryProperties.memoryTypeCount, "Unknown memory type bits set… in testMultiplaneImages()
2010 …const VkMemoryPropertyFlags propertyFlags (memoryProperties.memoryTypes[memoryTypeIndex].propertyF… in testMultiplaneImages()
2118 VkPhysicalDeviceMemoryProperties memoryProperties; in testVkMemoryPropertyFlags() local
2123 vki.getPhysicalDeviceMemoryProperties(physicalDevice, &memoryProperties); in testVkMemoryPropertyFlags()
[all …]
DvktMemoryMappingTests.cpp620 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(vki,… in testMemoryMapping() local
677 …for (deUint32 memoryTypeIndex = 0; memoryTypeIndex < memoryProperties.memoryTypeCount; memoryTypeI… in testMemoryMapping()
682 const vk::VkMemoryType& memoryType = memoryProperties.memoryTypes[memoryTypeIndex]; in testMemoryMapping()
683 const VkMemoryHeap& memoryHeap = memoryProperties.memoryHeaps[memoryType.heapIndex]; in testMemoryMapping()
1439 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(vki, p… in RandomMemoryMappingInstance() local
1444 vector<vector<MemoryType> > memoryTypes (memoryProperties.memoryHeapCount); in RandomMemoryMappingInstance()
1446 …for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < memoryProperties.memoryTypeCount; memoryTypeNdx++) in RandomMemoryMappingInstance()
1448 …if (memoryProperties.memoryTypes[memoryTypeNdx].propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BI… in RandomMemoryMappingInstance()
1449 …memoryTypes[memoryProperties.memoryTypes[memoryTypeNdx].heapIndex].push_back(MemoryType(memoryType… in RandomMemoryMappingInstance()
1452 for (deUint32 heapIndex = 0; heapIndex < memoryProperties.memoryHeapCount; heapIndex++) in RandomMemoryMappingInstance()
[all …]
DvktMemoryBindingTests.cpp262 VkPhysicalDeviceMemoryProperties memoryProperties; in selectMatchingMemoryType() local
264 vkInstance.getPhysicalDeviceMemoryProperties(vkPhysicalDevice, &memoryProperties); in selectMatchingMemoryType()
267 for (deUint32 typeNdx = 0; typeNdx < memoryProperties.memoryTypeCount; ++typeNdx) in selectMatchingMemoryType()
270 …const deBool hasRightProperties = (memoryProperties.memoryTypes[typeNdx].propertyFlags & VK… in selectMatchingMemoryType()
DvktMemoryDeviceMemoryReportTests.cpp1640 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(vki, p… in validateCallbackRecords() local
1649 record.heapIndex >= memoryProperties.memoryHeapCount) in validateCallbackRecords()
1651 …log << tcu::TestLog::Message << "memoryHeapCount: " << memoryProperties.memoryHeapCount << tcu::Te… in validateCallbackRecords()
1753 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(vki, p… in vkDeviceMemoryAllocateAndFreeTest() local
1756 const deUint32 testHeapIndex = memoryProperties.memoryTypes[testTypeIndex].heapIndex; in vkDeviceMemoryAllocateAndFreeTest()
1834 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(vki, p… in vkDeviceMemoryAllocationFailedTest() local
1837 const deUint32 testHeapIndex = memoryProperties.memoryTypes[testTypeIndex].heapIndex; in vkDeviceMemoryAllocationFailedTest()
/third_party/flutter/skia/third_party/externals/angle2/src/tests/test_utils/
DVulkanExternalHelper.cpp101 uint32_t FindMemoryType(const VkPhysicalDeviceMemoryProperties &memoryProperties, in FindMemoryType() argument
107 ASSERT(memoryIndex < memoryProperties.memoryTypeCount); in FindMemoryType()
109 if ((memoryProperties.memoryTypes[memoryIndex].propertyFlags & in FindMemoryType()
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DvkMemUtil.cpp264 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(vki, p… in allocateExtended() local
265 …const deUint32 memoryTypeNdx = selectMatchingMemoryType(memoryProperties, memReqs.memoryTyp… in allocateExtended()
278 DE_ASSERT(isHostVisibleMemory(memoryProperties, allocInfo.memoryTypeIndex)); in allocateExtended()
/third_party/flutter/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dvk_utils.cpp94 const vk::MemoryProperties &memoryProperties, in FindAndAllocateCompatibleMemory() argument
102 ANGLE_TRY(memoryProperties.findCompatibleMemoryIndex(context, memoryRequirements, in FindAndAllocateCompatibleMemory()
125 const vk::MemoryProperties &memoryProperties = context->getRenderer()->getMemoryProperties(); in AllocateAndBindBufferOrImageMemory() local
128 context, memoryProperties, requestedMemoryPropertyFlags, memoryPropertyFlagsOut, in AllocateAndBindBufferOrImageMemory()
Dvk_helpers.h670 const MemoryProperties &memoryProperties,
673 const MemoryProperties &memoryProperties,
700 const MemoryProperties &memoryProperties,
/third_party/mesa3d/src/virtio/vulkan/
Dvn_device_memory.c57 &dev->physical_device->memory_properties.memoryProperties; in vn_device_memory_simple_alloc()
233 &dev->physical_device->memory_properties.memoryProperties; in vn_device_memory_import_dma_buf()
314 &dev->physical_device->memory_properties.memoryProperties; in vn_AllocateMemory()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/
DvktDrawConcurrentTests.cpp166 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(instan… in iterate() local
168 SimpleAllocator * allocator = new SimpleAllocator(vk, *computeDevice, memoryProperties); in iterate()
/third_party/skia/src/gpu/
DGrAHardwareBufferUtils.cpp421 uint32_t memTypeCnt = phyDevMemProps.memoryProperties.memoryTypeCount; in make_vk_backend_texture()
424 const VkPhysicalDeviceMemoryProperties& pdmp = phyDevMemProps.memoryProperties; in make_vk_backend_texture()
/third_party/flutter/skia/src/gpu/
DGrAHardwareBufferUtils.cpp418 uint32_t memTypeCnt = phyDevMemProps.memoryProperties.memoryTypeCount; in make_vk_backend_texture()
421 const VkPhysicalDeviceMemoryProperties& pdmp = phyDevMemProps.memoryProperties; in make_vk_backend_texture()
/third_party/mesa3d/src/gallium/drivers/zink/
Dzink_screen.c1705 for (unsigned i = 0; i < mem.memoryProperties.memoryHeapCount; i++) { in zink_query_memory_info()
1706 if (mem.memoryProperties.memoryHeaps[i].flags & VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT) { in zink_query_memory_info()
1708 info->total_device_memory += mem.memoryProperties.memoryHeaps[i].size / 1024; in zink_query_memory_info()
1709 …info->avail_device_memory += (mem.memoryProperties.memoryHeaps[i].size - budget.heapUsage[i]) / 10… in zink_query_memory_info()
1712 info->total_staging_memory += mem.memoryProperties.memoryHeaps[i].size / 1024; in zink_query_memory_info()
1713 …info->avail_staging_memory += (mem.memoryProperties.memoryHeaps[i].size - budget.heapUsage[i]) / 1… in zink_query_memory_info()
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/
DVulkanHelper.cpp98 uint32_t FindMemoryType(const VkPhysicalDeviceMemoryProperties &memoryProperties, in FindMemoryType() argument
104 ASSERT(memoryIndex < memoryProperties.memoryTypeCount); in FindMemoryType()
106 if ((memoryProperties.memoryTypes[memoryIndex].propertyFlags & in FindMemoryType()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineRenderToImageTests.cpp748 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(vki, p… in getMemoryTypeNdx() local
760 return selectMatchingMemoryType(memoryProperties, memReqs.memoryTypeBits, MemoryRequirement::Any); in getMemoryTypeNdx()
767 …const VkPhysicalDeviceMemoryProperties memoryProperties = getPhysicalDeviceMemoryProperties(vki, p… in getMaxDeviceHeapSize() local
770 return memoryProperties.memoryHeaps[memoryProperties.memoryTypes[memoryTypeNdx].heapIndex].size; in getMaxDeviceHeapSize()
/third_party/flutter/skia/src/gpu/vk/
DGrVkCaps.cpp270 VkPhysicalDeviceMemoryProperties memoryProperties; in init() local
271 GR_VK_CALL(vkInterface, GetPhysicalDeviceMemoryProperties(physDev, &memoryProperties)); in init()
358 this->initGrCaps(vkInterface, physDev, properties, memoryProperties, features, extensions); in init()
490 const VkPhysicalDeviceMemoryProperties& memoryProperties, in initGrCaps() argument

123