Home
last modified time | relevance | path

Searched refs:memoryRequirements (Results 1 – 25 of 38) sorted by relevance

12

/external/swiftshader/src/Vulkan/
DVkBuffer.cpp45 VkMemoryRequirements memoryRequirements = {}; in getMemoryRequirements() local
48 memoryRequirements.alignment = vk::MIN_TEXEL_BUFFER_OFFSET_ALIGNMENT; in getMemoryRequirements()
52 memoryRequirements.alignment = vk::MIN_STORAGE_BUFFER_OFFSET_ALIGNMENT; in getMemoryRequirements()
56 memoryRequirements.alignment = vk::MIN_UNIFORM_BUFFER_OFFSET_ALIGNMENT; in getMemoryRequirements()
60 memoryRequirements.alignment = REQUIRED_MEMORY_ALIGNMENT; in getMemoryRequirements()
62 memoryRequirements.memoryTypeBits = vk::MEMORY_TYPE_GENERIC_BIT; in getMemoryRequirements()
63 memoryRequirements.size = size; // TODO: also reserve space for a header containing in getMemoryRequirements()
65 return memoryRequirements; in getMemoryRequirements()
DVkImage.cpp50 VkMemoryRequirements memoryRequirements; in getMemoryRequirements() local
51 memoryRequirements.alignment = vk::REQUIRED_MEMORY_ALIGNMENT; in getMemoryRequirements()
52 memoryRequirements.memoryTypeBits = vk::MEMORY_TYPE_GENERIC_BIT; in getMemoryRequirements()
53 memoryRequirements.size = getStorageSize(flags); in getMemoryRequirements()
54 return memoryRequirements; in getMemoryRequirements()
DlibVulkan.cpp1708 vkGetImageMemoryRequirements(device, pInfo->image, &(pMemoryRequirements->memoryRequirements)); in vkGetImageMemoryRequirements2()
1721 vkGetBufferMemoryRequirements(device, pInfo->buffer, &(pMemoryRequirements->memoryRequirements)); in vkGetBufferMemoryRequirements2()
1734 …ce, pInfo->image, pSparseMemoryRequirementCount, &(pSparseMemoryRequirements->memoryRequirements)); in vkGetImageSparseMemoryRequirements2()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiBufferTests.cpp579 …const deUint32 heapTypeIndex = static_cast<deUint32>(deCtz32(memReqs.memoryRequirements.m… in bufferCreateAndAllocTest()
591 memReqs.memoryRequirements.alignment, in bufferCreateAndAllocTest()
595 size = deAlign64(std::min(size, maxBufferSize >> 1), memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest()
609 size = deAlign64(size >> shrinkBits, memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest()
611 if (size == 0 || bufferParams.size == memReqs.memoryRequirements.alignment) in bufferCreateAndAllocTest()
623 if (size > memReqs.memoryRequirements.size) in bufferCreateAndAllocTest()
626 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in bufferCreateAndAllocTest()
648 memReqs.memoryRequirements.size, // VkDeviceSize allocationSize in bufferCreateAndAllocTest()
656 size = deAlign64(size >> shrinkBits, memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest()
658 if (size == 0 || memReqs.memoryRequirements.size == memReqs.memoryRequirements.alignment) in bufferCreateAndAllocTest()
[all …]
DvktApiGetMemoryCommitment.cpp63 bool isDeviceMemoryCommitmentOk (const VkMemoryRequirements memoryRequirements);
143 const VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vkd, device, *image); in iterate() local
144 …de::MovePtr<Allocation> imageAlloc = memAlloc.allocate(memoryRequirements, MemoryRequirement::L… in iterate()
254 isMemoryAllocationOK = isDeviceMemoryCommitmentOk(memoryRequirements); in iterate()
328 …isMemoryAllocationOK = (isMemoryAllocationOK && isDeviceMemoryCommitmentOk(memoryRequirements)) ? … in iterate()
461 …ryCommitmentTestInstance::isDeviceMemoryCommitmentOk(const VkMemoryRequirements memoryRequirements) in isDeviceMemoryCommitmentOk() argument
486 if(pCommittedMemoryInBytes <= memoryRequirements.size) in isDeviceMemoryCommitmentOk()
DvktApiBufferViewCreateTests.cpp271 if (size > memReqs.memoryRequirements.size) in createTestBuffer()
274 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in createTestBuffer()
281 …const deUint32 heapTypeIndex = static_cast<deUint32>(deCtz32(memReqs.memoryRequirements.m… in createTestBuffer()
285 if (size > memReqs.memoryRequirements.size) in createTestBuffer()
288 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in createTestBuffer()
309 memReqs.memoryRequirements.size, // VkDeviceSize allocationSize in createTestBuffer()
316 …return tcu::TestStatus::fail("Unable to allocate " + de::toString(memReqs.memoryRequirements.size)… in createTestBuffer()
DvktApiImageClearingTests.cpp87 const VkMemoryRequirements memoryRequirements = getBufferMemoryRequirements(vkd, device, buffer); in allocateBuffer() local
89 return allocator.allocate(memoryRequirements, requirement); in allocateBuffer()
117 const VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vkd, device, image); in allocateImage() local
119 return allocator.allocate(memoryRequirements, requirement); in allocateImage()
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemWsiSwapchainTests.cpp277 vk::VkMemoryRequirements memoryRequirements; in generateSwapchainParameterCases() local
303 memoryRequirements = vk::getImageMemoryRequirements(vkd, device, *image); in generateSwapchainParameterCases()
315 if ((memoryRequirements.memoryTypeBits & (1u << memType)) != 0 && in generateSwapchainParameterCases()
328 deUint32(maxMemoryUsage / memoryRequirements.size)); in generateSwapchainParameterCases()
362 vk::VkMemoryRequirements memoryRequirements; in generateSwapchainParameterCases() local
391 memoryRequirements = vk::getImageMemoryRequirements(vkd, device, *image); in generateSwapchainParameterCases()
395 if (memoryRequirements.size * capabilities.minImageCount < maxMemoryUsage) in generateSwapchainParameterCases()
438 vk::VkMemoryRequirements memoryRequirements; in generateSwapchainParameterCases() local
465 memoryRequirements = vk::getImageMemoryRequirements(vkd, device, *image); in generateSwapchainParameterCases()
469 if (memoryRequirements.size * capabilities.minImageCount < maxMemoryUsage) in generateSwapchainParameterCases()
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkMemUtil.cpp272 …const VkMemoryRequirements memoryRequirements = getBufferMemoryRequirements(vkd, device, buffe… in allocateDedicated() local
281 …return allocateDedicated(vki, vkd, physDevice, device, memoryRequirements, requirement, &dedicated… in allocateDedicated()
291 const VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vkd, device, image); in allocateDedicated() local
300 …return allocateDedicated(vki, vkd, physDevice, device, memoryRequirements, requirement, &dedicated… in allocateDedicated()
DvkImageUtil.cpp3068 const VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vk, device, destImage); in allocateAndBindSparseImage() local
3073 if ((memoryRequirements.memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in allocateAndBindSparseImage()
3084 if (memoryRequirements.size > deviceProperties.limits.sparseAddressSpaceSize) in allocateAndBindSparseImage()
3110 memoryRequirements.alignment, // VkDeviceSize size; in allocateAndBindSparseImage()
3111 memoryRequirements.alignment, // VkDeviceSize alignment; in allocateAndBindSparseImage()
3112 memoryRequirements.memoryTypeBits, // uint32_t memoryTypeBits; in allocateAndBindSparseImage()
3157 memoryRequirements.alignment, // VkDeviceSize alignment; in allocateAndBindSparseImage()
3158 memoryRequirements.memoryTypeBits, // uint32_t memoryTypeBits; in allocateAndBindSparseImage()
3191 memoryRequirements.alignment, // VkDeviceSize alignment; in allocateAndBindSparseImage()
3192 memoryRequirements.memoryTypeBits, // uint32_t memoryTypeBits; in allocateAndBindSparseImage()
DvkQueryUtil.cpp273 return reqs.memoryRequirements; in getImagePlaneMemoryRequirements()
DvkStructTypes.inl1353 VkMemoryRequirements memoryRequirements; member
1360 VkSparseImageMemoryRequirements memoryRequirements; member
/external/deqp/external/vulkancts/modules/vulkan/synchronization/
DvktSynchronizationCrossInstanceSharingTests.cpp546 vk::VkMemoryRequirements memoryRequirements = { 0u, 0u, 0u, }; in allocateAndBindMemory() local
574 memoryRequirements = requirements.memoryRequirements; in allocateAndBindMemory()
578 vkd.getBufferMemoryRequirements(device, buffer, &memoryRequirements); in allocateAndBindMemory()
582 …vk::Move<vk::VkDeviceMemory> memory = allocateExportableMemory(vkd, device, memoryRequirements, ex… in allocateAndBindMemory()
596 vk::VkMemoryRequirements memoryRequirements = { 0u, 0u, 0u, }; in allocateAndBindMemory() local
624 memoryRequirements = requirements.memoryRequirements; in allocateAndBindMemory()
628 vkd.getImageMemoryRequirements(device, image, &memoryRequirements); in allocateAndBindMemory()
631 …vk::Move<vk::VkDeviceMemory> memory = allocateExportableMemory(vkd, device, memoryRequirements, ex… in allocateAndBindMemory()
DvktSynchronizationWin32KeyedMutexTests.cpp322 …vk::Move<vk::VkDeviceMemory> memory = importMemory(vkd, device, requirements.memoryRequirements, e… in importAndBindMemory()
355 …vk::Move<vk::VkDeviceMemory> memory = importMemory(vkd, device, requirements.memoryRequirements, e… in importAndBindMemory()
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesBufferTests.cpp221 …const VkMemoryRequirements memoryRequirements = getBufferMemoryRequirements(vk, device, *refBuff… in build() local
222 … chunkSize = std::max(memoryRequirements.alignment, static_cast<VkDeviceSize>(deAlign64(minCh… in build()
223 …Ndx = findMatchingMemoryType(instanceInterface, physicalDevice, memoryRequirements, MemoryRequi… in build()
228 memoryRequirements.size, // VkDeviceSize allocationSize; in build()
/external/deqp/external/vulkancts/modules/vulkan/memory/
DvktMemoryRequirementsTests.cpp94 return req2.memoryRequirements; in getBufferMemoryRequirements2()
116 return req2.memoryRequirements; in getImageMemoryRequirements2()
1740 …result.check(deIsPowerOfTwo64(static_cast<deUint64>(requirements.memoryRequirements.alignment)), "… in testMultiplaneImages()
1742 …if (result.check(requirements.memoryRequirements.memoryTypeBits != 0, "No supported memory types")) in testMultiplaneImages()
1746 …t32 memoryTypeIndex = 0; (0x1u << memoryTypeIndex) <= requirements.memoryRequirements.memoryTypeBi… in testMultiplaneImages()
DvktMemoryMappingTests.cpp376 return req2.memoryRequirements; in getImageMemoryRequirements()
403 return req2.memoryRequirements; in getBufferMemoryRequirements()
DvktMemoryPipelineBarrierTests.cpp557 …const vk::VkMemoryRequirements memoryRequirements = vk::getBufferMemoryRequirements(vkd, device… in bindBufferMemory() local
563 if ((memoryRequirements.memoryTypeBits & (0x1u << memoryTypeIndex)) in bindBufferMemory()
572 memoryRequirements.size, in bindBufferMemory()
607 …const vk::VkMemoryRequirements memoryRequirements = vk::getImageMemoryRequirements(vkd, device,… in bindImageMemory() local
613 if ((memoryRequirements.memoryTypeBits & (0x1u << memoryTypeIndex)) in bindImageMemory()
622 memoryRequirements.size, in bindImageMemory()
/external/mesa3d/src/intel/vulkan/
Danv_device.c2123 &pMemoryRequirements->memoryRequirements); in anv_GetBufferMemoryRequirements2KHR()
2175 &pMemoryRequirements->memoryRequirements); in anv_GetImageMemoryRequirements2KHR()
2198 pMemoryRequirements->memoryRequirements.memoryTypeBits = in anv_GetImageMemoryRequirements2KHR()
2201 pMemoryRequirements->memoryRequirements.size = image->planes[plane].size; in anv_GetImageMemoryRequirements2KHR()
2202 pMemoryRequirements->memoryRequirements.alignment = in anv_GetImageMemoryRequirements2KHR()
/external/deqp/external/vulkancts/modules/vulkan/renderpass/
DvktRenderPassUnusedAttachmentTests.cpp419 …VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vk, vkDevice, *m_unusedImage); in UnusedAttachmentTestInstance() local
421 m_unusedImageAlloc = memAlloc.allocate(memoryRequirements, MemoryRequirement::Any); in UnusedAttachmentTestInstance()
DvktRenderPassTests.cpp135 const VkMemoryRequirements memoryRequirements = getBufferMemoryRequirements(vkd, device, buffer); in allocateBuffer() local
137 return allocator.allocate(memoryRequirements, requirement); in allocateBuffer()
165 const VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vkd, device, image); in allocateImage() local
167 return allocator.allocate(memoryRequirements, requirement); in allocateImage()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineImageSamplingInstance.cpp66 const VkMemoryRequirements memoryRequirements = getBufferMemoryRequirements(vkd, device, buffer); in allocateBuffer() local
68 return allocator.allocate(memoryRequirements, requirement); in allocateBuffer()
96 const VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vkd, device, image); in allocateImage() local
98 return allocator.allocate(memoryRequirements, requirement); in allocateImage()
/external/vulkan-headers/include/vulkan/
Dvulkan.hpp34253 && ( memoryRequirements == rhs.memoryRequirements ); in operator ==()
34266 MemoryRequirements memoryRequirements; member
44885 && ( memoryRequirements == rhs.memoryRequirements ); in operator ==()
44898 SparseImageMemoryRequirements memoryRequirements; member
50451 MemoryRequirements2KHR memoryRequirements; in getAccelerationStructureMemoryRequirementsNV() local
50452 …equirementsInfoNV*>( &info ), reinterpret_cast<VkMemoryRequirements2KHR*>( &memoryRequirements ) ); in getAccelerationStructureMemoryRequirementsNV()
50453 return memoryRequirements; in getAccelerationStructureMemoryRequirementsNV()
50459 …MemoryRequirements2KHR& memoryRequirements = structureChain.template get<MemoryRequirements2KHR>(); in getAccelerationStructureMemoryRequirementsNV() local
50460 …equirementsInfoNV*>( &info ), reinterpret_cast<VkMemoryRequirements2KHR*>( &memoryRequirements ) ); in getAccelerationStructureMemoryRequirementsNV()
50512 MemoryRequirements memoryRequirements; in getBufferMemoryRequirements() local
[all …]
/external/swiftshader/include/vulkan/
Dvulkan.hpp16087 && ( memoryRequirements == rhs.memoryRequirements ); in operator ==()
16100 MemoryRequirements memoryRequirements; member
26105 && ( memoryRequirements == rhs.memoryRequirements ); in operator ==()
26118 SparseImageMemoryRequirements memoryRequirements; member
41713 MemoryRequirements memoryRequirements; in getBufferMemoryRequirements() local
41714 … static_cast<VkBuffer>( buffer ), reinterpret_cast<VkMemoryRequirements*>( &memoryRequirements ) ); in getBufferMemoryRequirements()
41715 return memoryRequirements; in getBufferMemoryRequirements()
41743 MemoryRequirements memoryRequirements; in getImageMemoryRequirements() local
41744 …e, static_cast<VkImage>( image ), reinterpret_cast<VkMemoryRequirements*>( &memoryRequirements ) ); in getImageMemoryRequirements()
41745 return memoryRequirements; in getImageMemoryRequirements()
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_device.c2433 &pMemoryRequirements->memoryRequirements); in radv_GetBufferMemoryRequirements2KHR()
2470 &pMemoryRequirements->memoryRequirements); in radv_GetImageMemoryRequirements2KHR()

12