/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
D | VkBuffer.cpp | 61 VkMemoryRequirements memoryRequirements = {}; in getMemoryRequirements() local 66 memoryRequirements.size = this->size + 15; in getMemoryRequirements() 68 if(memoryRequirements.size < this->size) // Overflow occurred in getMemoryRequirements() 70 memoryRequirements.size = std::numeric_limits<VkDeviceSize>::max(); in getMemoryRequirements() 75 memoryRequirements.alignment = vk::MIN_TEXEL_BUFFER_OFFSET_ALIGNMENT; in getMemoryRequirements() 79 memoryRequirements.alignment = vk::MIN_STORAGE_BUFFER_OFFSET_ALIGNMENT; in getMemoryRequirements() 83 memoryRequirements.alignment = vk::MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT; in getMemoryRequirements() 87 memoryRequirements.alignment = REQUIRED_MEMORY_ALIGNMENT; in getMemoryRequirements() 90 memoryRequirements.memoryTypeBits = vk::MEMORY_TYPE_GENERIC_BIT; in getMemoryRequirements() 92 return memoryRequirements; in getMemoryRequirements()
|
D | VkImage.cpp | 221 VkMemoryRequirements memoryRequirements; in getMemoryRequirements() local 222 memoryRequirements.alignment = vk::REQUIRED_MEMORY_ALIGNMENT; in getMemoryRequirements() 223 memoryRequirements.memoryTypeBits = vk::MEMORY_TYPE_GENERIC_BIT; in getMemoryRequirements() 224 memoryRequirements.size = getStorageSize(format.getAspects()) + in getMemoryRequirements() 226 return memoryRequirements; in getMemoryRequirements()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/ |
D | vktApiBufferTests.cpp | 453 …const deUint32 heapTypeIndex = static_cast<deUint32>(deCtz32(memReqs.memoryRequirements.m… in bufferCreateAndAllocTest() 465 memReqs.memoryRequirements.alignment, in bufferCreateAndAllocTest() 469 size = deAlign64(std::min(size, maxBufferSize >> 1), memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest() 483 size = deAlign64(size >> shrinkBits, memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest() 485 if (size == 0 || bufferParams.size == memReqs.memoryRequirements.alignment) in bufferCreateAndAllocTest() 497 if (size > memReqs.memoryRequirements.size) in bufferCreateAndAllocTest() 500 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in bufferCreateAndAllocTest() 522 memReqs.memoryRequirements.size, // VkDeviceSize allocationSize in bufferCreateAndAllocTest() 530 size = deAlign64(size >> shrinkBits, memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest() 532 if (size == 0 || memReqs.memoryRequirements.size == memReqs.memoryRequirements.alignment) in bufferCreateAndAllocTest() [all …]
|
D | vktApiBufferViewCreateTests.cpp | 269 if (size > memReqs.memoryRequirements.size) in createTestBuffer() 272 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in createTestBuffer() 279 …const deUint32 heapTypeIndex = static_cast<deUint32>(deCtz32(memReqs.memoryRequirements.m… in createTestBuffer() 283 if (size > memReqs.memoryRequirements.size) in createTestBuffer() 286 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in createTestBuffer() 307 memReqs.memoryRequirements.size, // VkDeviceSize allocationSize in createTestBuffer() 314 …return tcu::TestStatus::fail("Unable to allocate " + de::toString(memReqs.memoryRequirements.size)… in createTestBuffer()
|
D | vktApiGetMemoryCommitment.cpp | 78 bool isDeviceMemoryCommitmentOk (const VkMemoryRequirements memoryRequirements); 159 const VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vkd, device, *image); in iterate() local 160 …de::MovePtr<Allocation> imageAlloc = memAlloc.allocate(memoryRequirements, MemoryRequirement::L… in iterate() 270 isMemoryAllocationOK = isDeviceMemoryCommitmentOk(memoryRequirements); in iterate() 344 …isMemoryAllocationOK = (isMemoryAllocationOK && isDeviceMemoryCommitmentOk(memoryRequirements)) ? … in iterate() 467 …ryCommitmentTestInstance::isDeviceMemoryCommitmentOk(const VkMemoryRequirements memoryRequirements) in isDeviceMemoryCommitmentOk() argument 492 if(pCommittedMemoryInBytes <= memoryRequirements.size) in isDeviceMemoryCommitmentOk()
|
D | vktApiMemoryRequirementInvarianceTests.cpp | 773 return ((a.memoryRequirements.size == b.memoryRequirements.size) && in iterate() 774 (a.memoryRequirements.alignment == b.memoryRequirements.alignment) && in iterate() 775 (a.memoryRequirements.memoryTypeBits == b.memoryRequirements.memoryTypeBits)); in iterate()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
D | vk_utils.cpp | 61 const VkMemoryRequirements &memoryRequirements, in FindCompatibleMemory() argument 66 for (size_t memoryIndex : angle::BitSet32<32>(memoryRequirements.memoryTypeBits)) in FindCompatibleMemory() 86 const VkMemoryRequirements &memoryRequirements, in FindAndAllocateCompatibleMemory() argument 94 context, memoryRequirements, requestedMemoryPropertyFlags, (extraAllocationInfo != nullptr), in FindAndAllocateCompatibleMemory() 101 allocInfo.allocationSize = memoryRequirements.size; in FindAndAllocateCompatibleMemory() 114 memoryRequirements.size, kNonZeroInitValue, in FindAndAllocateCompatibleMemory() 126 const VkMemoryRequirements &memoryRequirements, 136 const VkMemoryRequirements &memoryRequirements, in AllocateAndBindBufferOrImageMemory() argument 146 memoryRequirements, extraAllocationInfo, deviceMemoryOut)); in AllocateAndBindBufferOrImageMemory() 171 const VkMemoryRequirements &memoryRequirements, in AllocateAndBindBufferOrImageMemory() argument [all …]
|
/third_party/vk-gl-cts/external/vulkan-docs/src/appendices/ |
D | VK_NV_dedicated_allocation.txt | 65 VkMemoryRequirements memoryRequirements; 69 &memoryRequirements); 86 memoryRequirements.size, // allocationSize 87 FindMemoryTypeIndex(memoryRequirements.memoryTypeBits), // memoryTypeIndex
|
D | VK_KHR_dedicated_allocation.txt | 78 VkMemoryRequirements2 memoryRequirements = 94 &memoryRequirements); 112 memoryRequirements.size, // allocationSize 113 FindMemoryTypeIndex(memoryRequirements.memoryTypeBits), // memoryTypeIndex
|
/third_party/skia/third_party/externals/swiftshader/tests/VulkanWrapper/ |
D | Image.cpp | 34 vk::MemoryRequirements memoryRequirements = device.getImageMemoryRequirements(image); in Image() local 37 allocateInfo.allocationSize = memoryRequirements.size; in Image() 38 …allocateInfo.memoryTypeIndex = Util::getMemoryTypeIndex(physicalDevice, memoryRequirements.memoryT… in Image()
|
D | DrawTester.cpp | 418 vk::MemoryRequirements memoryRequirements = device.getBufferMemoryRequirements(vertices.buffer); in addVertexBuffer() local 419 memoryAllocateInfo.allocationSize = memoryRequirements.size; in addVertexBuffer() 420 …memoryAllocateInfo.memoryTypeIndex = Util::getMemoryTypeIndex(physicalDevice, memoryRequirements.m… in addVertexBuffer()
|
/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/external_memory/ |
D | MemoryServiceDmaBuf.cpp | 165 VkMemoryRequirements memoryRequirements; in GetMemoryImportParams() local 166 mDevice->fn.GetImageMemoryRequirements(device, image, &memoryRequirements); in GetMemoryImportParams() 177 memoryRequirements.memoryTypeBits &= fdProperties.memoryTypeBits; in GetMemoryImportParams() 179 memoryRequirements, MemoryKind::Opaque); in GetMemoryImportParams() 183 MemoryImportParams params = {memoryRequirements.size, in GetMemoryImportParams()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/protected_memory/ |
D | vktProtectedMemWsiSwapchainTests.cpp | 288 vk::VkMemoryRequirements memoryRequirements; in generateSwapchainParameterCases() local 314 memoryRequirements = vk::getImageMemoryRequirements(vkd, device, *image); in generateSwapchainParameterCases() 326 if ((memoryRequirements.memoryTypeBits & (1u << memType)) != 0 && in generateSwapchainParameterCases() 341 deUint32(maxMemoryUsage / memoryRequirements.size)); in generateSwapchainParameterCases() 377 vk::VkMemoryRequirements memoryRequirements; in generateSwapchainParameterCases() local 406 memoryRequirements = vk::getImageMemoryRequirements(vkd, device, *image); in generateSwapchainParameterCases() 410 if (memoryRequirements.size * capabilities.minImageCount < maxMemoryUsage) in generateSwapchainParameterCases() 455 vk::VkMemoryRequirements memoryRequirements; in generateSwapchainParameterCases() local 482 memoryRequirements = vk::getImageMemoryRequirements(vkd, device, *image); in generateSwapchainParameterCases() 486 if (memoryRequirements.size * capabilities.minImageCount < maxMemoryUsage) in generateSwapchainParameterCases() [all …]
|
/third_party/skia/third_party/externals/swiftshader/tests/VulkanBenchmarks/ |
D | ClearImageBenchmarks.cpp | 42 vk::MemoryRequirements memoryRequirements = device.getImageMemoryRequirements(image); in initialize() local 45 allocateInfo.allocationSize = memoryRequirements.size; in initialize() 46 …allocateInfo.memoryTypeIndex = Util::getMemoryTypeIndex(physicalDevice, memoryRequirements.memoryT… in initialize()
|
/third_party/mesa3d/src/virtio/vulkan/ |
D | vn_buffer.c | 125 if (buf->requirements.memory.memoryRequirements.alignment < in vn_buffer_cache_entries_create() 126 buf->requirements.memory.memoryRequirements.size) { in vn_buffer_cache_entries_create() 280 out->memory.memoryRequirements.size = align64( in vn_buffer_cache_get_memory_requirements() 281 create_info->size, out->memory.memoryRequirements.alignment); in vn_buffer_cache_get_memory_requirements() 443 u.two->memoryRequirements = in vn_GetBufferMemoryRequirements2() 444 buf->requirements.memory.memoryRequirements; in vn_GetBufferMemoryRequirements2()
|
D | vn_android.c | 617 &img->requirements[0].memory.memoryRequirements; in vn_android_image_from_anb() 1176 &img->requirements[0].memory.memoryRequirements; in vn_android_device_import_ahb() 1214 &buf->requirements.memory.memoryRequirements; in vn_android_device_import_ahb() 1439 (*out_buf)->requirements.memory.memoryRequirements.memoryTypeBits &= in vn_android_buffer_from_ahb() 1442 assert((*out_buf)->requirements.memory.memoryRequirements.memoryTypeBits); in vn_android_buffer_from_ahb()
|
/third_party/mesa3d/src/amd/vulkan/ |
D | radv_formats.c | 1960 &req->memoryRequirements.formatProperties); in radv_GetImageSparseMemoryRequirements2() 1961 req->memoryRequirements.imageMipTailFirstLod = image->planes[0].surface.first_mip_tail_level; in radv_GetImageSparseMemoryRequirements2() 1963 if (req->memoryRequirements.imageMipTailFirstLod < image->info.levels) { in radv_GetImageSparseMemoryRequirements2() 1966 req->memoryRequirements.imageMipTailSize = 65536; in radv_GetImageSparseMemoryRequirements2() 1967 req->memoryRequirements.imageMipTailOffset = in radv_GetImageSparseMemoryRequirements2() 1969 .surface.u.gfx9.prt_level_offset[req->memoryRequirements.imageMipTailFirstLod] & in radv_GetImageSparseMemoryRequirements2() 1971 req->memoryRequirements.imageMipTailStride = in radv_GetImageSparseMemoryRequirements2() 1974 req->memoryRequirements.imageMipTailOffset = in radv_GetImageSparseMemoryRequirements2() 1976 .surface.u.legacy.level[req->memoryRequirements.imageMipTailFirstLod] in radv_GetImageSparseMemoryRequirements2() 1978 req->memoryRequirements.imageMipTailSize = in radv_GetImageSparseMemoryRequirements2() [all …]
|
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/ |
D | VulkanHelper.cpp | 558 VkMemoryRequirements memoryRequirements; in createImage2DExternal() local 559 vkGetImageMemoryRequirements(mDevice, image, &memoryRequirements); in createImage2DExternal() 560 uint32_t memoryTypeIndex = FindMemoryType(mMemoryProperties, memoryRequirements.memoryTypeBits, in createImage2DExternal() 563 VkDeviceSize deviceMemorySize = memoryRequirements.size; in createImage2DExternal() 962 VkMemoryRequirements memoryRequirements; in readPixels() local 963 vkGetBufferMemoryRequirements(mDevice, stagingBuffer, &memoryRequirements); in readPixels() 964 uint32_t memoryTypeIndex = FindMemoryType(mMemoryProperties, memoryRequirements.memoryTypeBits, in readPixels() 967 VkDeviceSize deviceMemorySize = memoryRequirements.size; in readPixels()
|
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
D | vkMemUtil.cpp | 292 …const VkMemoryRequirements memoryRequirements = getBufferMemoryRequirements(vkd, device, buffe… in allocateDedicated() local 301 …return allocateExtended(vki, vkd, physDevice, device, memoryRequirements, requirement, &dedicatedA… in allocateDedicated() 311 const VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vkd, device, image); in allocateDedicated() local 320 …return allocateExtended(vki, vkd, physDevice, device, memoryRequirements, requirement, &dedicatedA… in allocateDedicated()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/synchronization/ |
D | vktSynchronizationCrossInstanceSharingTests.cpp | 573 vk::VkMemoryRequirements memoryRequirements = { 0u, 0u, 0u, }; in getMemoryRequirements() local 601 memoryRequirements = requirements.memoryRequirements; in getMemoryRequirements() 605 vkd.getImageMemoryRequirements(device, image, &memoryRequirements); in getMemoryRequirements() 608 return memoryRequirements; in getMemoryRequirements() 617 vk::VkMemoryRequirements memoryRequirements = { 0u, 0u, 0u, }; in getMemoryRequirements() local 645 memoryRequirements = requirements.memoryRequirements; in getMemoryRequirements() 649 vkd.getBufferMemoryRequirements(device, buffer, &memoryRequirements); in getMemoryRequirements() 652 return memoryRequirements; in getMemoryRequirements()
|
/third_party/mesa3d/src/gallium/frontends/lavapipe/ |
D | lvp_device.c | 1820 pMemoryRequirements->memoryRequirements.memoryTypeBits = 1; in lvp_GetDeviceBufferMemoryRequirements() 1821 pMemoryRequirements->memoryRequirements.alignment = 64; in lvp_GetDeviceBufferMemoryRequirements() 1822 pMemoryRequirements->memoryRequirements.size = 0; in lvp_GetDeviceBufferMemoryRequirements() 1828 pMemoryRequirements->memoryRequirements.size = buffer->total_size; in lvp_GetDeviceBufferMemoryRequirements() 1846 pMemoryRequirements->memoryRequirements.memoryTypeBits = 1; in lvp_GetDeviceImageMemoryRequirements() 1847 pMemoryRequirements->memoryRequirements.alignment = 0; in lvp_GetDeviceImageMemoryRequirements() 1848 pMemoryRequirements->memoryRequirements.size = 0; in lvp_GetDeviceImageMemoryRequirements() 1854 pMemoryRequirements->memoryRequirements.size = image->size; in lvp_GetDeviceImageMemoryRequirements() 1855 pMemoryRequirements->memoryRequirements.alignment = image->alignment; in lvp_GetDeviceImageMemoryRequirements() 1887 &pMemoryRequirements->memoryRequirements); in lvp_GetBufferMemoryRequirements2() [all …]
|
/third_party/mesa3d/src/panfrost/vulkan/ |
D | panvk_device.c | 1284 pMemoryRequirements->memoryRequirements.memoryTypeBits = 1; in panvk_GetBufferMemoryRequirements2() 1285 pMemoryRequirements->memoryRequirements.alignment = align; in panvk_GetBufferMemoryRequirements2() 1286 pMemoryRequirements->memoryRequirements.size = size; in panvk_GetBufferMemoryRequirements2() 1299 pMemoryRequirements->memoryRequirements.memoryTypeBits = 1; in panvk_GetImageMemoryRequirements2() 1300 pMemoryRequirements->memoryRequirements.alignment = align; in panvk_GetImageMemoryRequirements2() 1301 pMemoryRequirements->memoryRequirements.size = size; in panvk_GetImageMemoryRequirements2()
|
/third_party/mesa3d/src/virtio/venus-protocol/ |
D | vn_protocol_driver_structs.h | 931 size += vn_sizeof_VkMemoryRequirements(&val->memoryRequirements); in vn_sizeof_VkMemoryRequirements2_self() 980 vn_decode_VkMemoryRequirements(dec, &val->memoryRequirements); in vn_decode_VkMemoryRequirements2_self() 1024 size += vn_sizeof_VkMemoryRequirements_partial(&val->memoryRequirements); in vn_sizeof_VkMemoryRequirements2_self_partial() 1067 vn_encode_VkMemoryRequirements_partial(enc, &val->memoryRequirements); in vn_encode_VkMemoryRequirements2_self_partial()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/ |
D | vktMemoryRequirementsTests.cpp | 94 return req2.memoryRequirements; in getBufferMemoryRequirements2() 125 return req2.memoryRequirements; in getBufferCreateInfoMemoryRequirementsKHR() 147 return req2.memoryRequirements; in getImageMemoryRequirements2() 168 return req2.memoryRequirements; in getDeviceImageMemoryRequirementsKHR() 202 requirements[ndx] = requirements2[ndx].memoryRequirements; in getImageCreateInfoSparseMemoryRequirements() 2000 …result.check(deIsPowerOfTwo64(static_cast<deUint64>(requirements.memoryRequirements.alignment)), "… in testMultiplaneImages() 2002 …if (result.check(requirements.memoryRequirements.memoryTypeBits != 0, "No supported memory types")) in testMultiplaneImages() 2006 …t32 memoryTypeIndex = 0; (0x1u << memoryTypeIndex) <= requirements.memoryRequirements.memoryTypeBi… in testMultiplaneImages()
|
/third_party/mesa3d/src/vulkan/runtime/ |
D | vk_device.c | 418 *pMemoryRequirements = reqs.memoryRequirements; in vk_common_GetBufferMemoryRequirements() 455 *pMemoryRequirements = reqs.memoryRequirements; in vk_common_GetImageMemoryRequirements() 510 pSparseMemoryRequirements[i] = mem_reqs2[i].memoryRequirements; in vk_common_GetImageSparseMemoryRequirements()
|