Home
last modified time | relevance | path

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

1234

/external/swiftshader/src/Vulkan/
DVkBuffer.cpp67 VkMemoryRequirements memoryRequirements = {}; in GetMemoryRequirements() local
69 memoryRequirements.size = size; in GetMemoryRequirements()
70 memoryRequirements.alignment = vk::MEMORY_REQUIREMENTS_OFFSET_ALIGNMENT; in GetMemoryRequirements()
74memoryRequirements.alignment = std::max(memoryRequirements.alignment, vk::MIN_TEXEL_BUFFER_OFFSET_… in GetMemoryRequirements()
79memoryRequirements.alignment = std::max(memoryRequirements.alignment, vk::MIN_STORAGE_BUFFER_OFFSE… in GetMemoryRequirements()
84memoryRequirements.alignment = std::max(memoryRequirements.alignment, vk::MIN_UNIFORM_BUFFER_OFFSE… in GetMemoryRequirements()
87 memoryRequirements.memoryTypeBits = vk::MEMORY_TYPE_GENERIC_BIT; in GetMemoryRequirements()
89 return memoryRequirements; in GetMemoryRequirements()
DVkImage.cpp223 VkMemoryRequirements memoryRequirements; in getMemoryRequirements() local
224 memoryRequirements.alignment = vk::MEMORY_REQUIREMENTS_OFFSET_ALIGNMENT; in getMemoryRequirements()
225 memoryRequirements.memoryTypeBits = vk::MEMORY_TYPE_GENERIC_BIT; in getMemoryRequirements()
226 memoryRequirements.size = getStorageSize(format.getAspects()) + in getMemoryRequirements()
228 return memoryRequirements; in getMemoryRequirements()
259 pMemoryRequirements->memoryRequirements = getMemoryRequirements(); in getMemoryRequirements()
/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiBufferTests.cpp465 if(memReqs.memoryRequirements.memoryTypeBits == 0) in bufferCreateAndAllocTest()
468 …const deUint32 heapTypeIndex = static_cast<deUint32>(deCtz32(memReqs.memoryRequirements.m… in bufferCreateAndAllocTest()
480 memReqs.memoryRequirements.alignment, in bufferCreateAndAllocTest()
484 size = deAlign64(std::min(size, maxBufferSize >> 1), memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest()
498 size = deAlign64(size >> shrinkBits, memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest()
500 if (size == 0 || bufferParams.size == memReqs.memoryRequirements.alignment) in bufferCreateAndAllocTest()
512 if (size > memReqs.memoryRequirements.size) in bufferCreateAndAllocTest()
515 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in bufferCreateAndAllocTest()
537 memReqs.memoryRequirements.size, // VkDeviceSize allocationSize in bufferCreateAndAllocTest()
545 size = deAlign64(size >> shrinkBits, memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest()
[all …]
DvktApiBufferViewCreateTests.cpp274 if (size > memReqs.memoryRequirements.size) in createTestBuffer()
277 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in createTestBuffer()
284 if (memReqs.memoryRequirements.memoryTypeBits == 0) in createTestBuffer()
287 …const deUint32 heapTypeIndex = static_cast<deUint32>(deCtz32(memReqs.memoryRequirements.m… in createTestBuffer()
291 if (size > memReqs.memoryRequirements.size) in createTestBuffer()
294 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in createTestBuffer()
315 memReqs.memoryRequirements.size, // VkDeviceSize allocationSize in createTestBuffer()
322 …return tcu::TestStatus::fail("Unable to allocate " + de::toString(memReqs.memoryRequirements.size)… in createTestBuffer()
DvktApiGetMemoryCommitment.cpp78 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()
DvktApiMemoryRequirementInvarianceTests.cpp785 return ((a.memoryRequirements.size == b.memoryRequirements.size) && in iterate()
786 (a.memoryRequirements.alignment == b.memoryRequirements.alignment) && in iterate()
787 (a.memoryRequirements.memoryTypeBits == b.memoryRequirements.memoryTypeBits)); in iterate()
/external/angle/src/libANGLE/renderer/vulkan/
Dvk_utils.cpp64 const VkMemoryRequirements &memoryRequirements, in FindCompatibleMemory() argument
69 for (size_t memoryIndex : angle::BitSet32<32>(memoryRequirements.memoryTypeBits)) in FindCompatibleMemory()
90 const VkMemoryRequirements &memoryRequirements, in FindAndAllocateCompatibleMemory() argument
98 context, memoryRequirements, requestedMemoryPropertyFlags, (extraAllocationInfo != nullptr), in FindAndAllocateCompatibleMemory()
105 allocInfo.allocationSize = memoryRequirements.size; in FindAndAllocateCompatibleMemory()
152 const VkMemoryRequirements &memoryRequirements,
164 const VkMemoryRequirements &memoryRequirements, in AllocateAndBindBufferOrImageMemory() argument
175 memoryRequirements, extraAllocationInfo, in AllocateAndBindBufferOrImageMemory()
202 const VkMemoryRequirements &memoryRequirements, in AllocateAndBindBufferOrImageMemory() argument
215 memoryRequirements, extraAllocationInfo, in AllocateAndBindBufferOrImageMemory()
[all …]
/external/swiftshader/tests/VulkanWrapper/
DImage.cpp34 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()
DDrawTester.cpp418 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()
/external/angle/src/tests/test_utils/
DVulkanHelper.cpp524 VkMemoryRequirements memoryRequirements; in createImage2D() local
525 vkGetImageMemoryRequirements(mDevice, image, &memoryRequirements); in createImage2D()
526 uint32_t memoryTypeIndex = FindMemoryType(mMemoryProperties, memoryRequirements.memoryTypeBits, in createImage2D()
529 VkDeviceSize deviceMemorySize = memoryRequirements.size; in createImage2D()
657 VkMemoryRequirements memoryRequirements; in createImage2DExternal() local
658 vkGetImageMemoryRequirements(mDevice, image, &memoryRequirements); in createImage2DExternal()
659 uint32_t memoryTypeIndex = FindMemoryType(mMemoryProperties, memoryRequirements.memoryTypeBits, in createImage2DExternal()
662 VkDeviceSize deviceMemorySize = memoryRequirements.size; in createImage2DExternal()
1061 VkMemoryRequirements memoryRequirements; in readPixels() local
1062 vkGetBufferMemoryRequirements(mDevice, stagingBuffer, &memoryRequirements); in readPixels()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/protected_memory/
DvktProtectedMemWsiSwapchainTests.cpp290 vk::VkMemoryRequirements memoryRequirements; in generateSwapchainParameterCases() local
316 memoryRequirements = vk::getImageMemoryRequirements(vkd, device, *image); in generateSwapchainParameterCases()
328 if ((memoryRequirements.memoryTypeBits & (1u << memType)) != 0 && in generateSwapchainParameterCases()
343 deUint32(maxMemoryUsage / memoryRequirements.size)); in generateSwapchainParameterCases()
379 vk::VkMemoryRequirements memoryRequirements; in generateSwapchainParameterCases() local
408 memoryRequirements = vk::getImageMemoryRequirements(vkd, device, *image); in generateSwapchainParameterCases()
412 if (memoryRequirements.size * capabilities.minImageCount < maxMemoryUsage) in generateSwapchainParameterCases()
457 vk::VkMemoryRequirements memoryRequirements; in generateSwapchainParameterCases() local
484 memoryRequirements = vk::getImageMemoryRequirements(vkd, device, *image); in generateSwapchainParameterCases()
488 if (memoryRequirements.size * capabilities.minImageCount < maxMemoryUsage) in generateSwapchainParameterCases()
[all …]
/external/swiftshader/tests/VulkanBenchmarks/
DClearImageBenchmarks.cpp44 vk::MemoryRequirements memoryRequirements = device.getImageMemoryRequirements(image); in initialize() local
47 allocateInfo.allocationSize = memoryRequirements.size; in initialize()
48 …allocateInfo.memoryTypeIndex = Util::getMemoryTypeIndex(physicalDevice, memoryRequirements.memoryT… in initialize()
/external/vulkan-validation-layers/tests/
Dvktestbinding.cpp629 VkMemoryRequirements2 memoryRequirements = {}; in memory_requirements() local
630 …tAccelerationStructureMemoryRequirementsNV(device(), &memoryRequirementsInfo, &memoryRequirements); in memory_requirements()
631 return memoryRequirements; in memory_requirements()
645 VkMemoryRequirements2 memoryRequirements = {}; in build_scratch_memory_requirements() local
646 …tAccelerationStructureMemoryRequirementsNV(device(), &memoryRequirementsInfo, &memoryRequirements); in build_scratch_memory_requirements()
647 return memoryRequirements; in build_scratch_memory_requirements()
660 …ory_.init(dev, DeviceMemory::get_resource_alloc_info(dev, memory_requirements().memoryRequirements, in init()
681 …ements scratch_buffer_memory_requirements = build_scratch_memory_requirements().memoryRequirements; in create_scratch_buffer()
/external/deqp/external/vulkancts/framework/vulkan/
DvkMemUtil.cpp292 …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()
DvkImageUtil.cpp5300 const VkMemoryRequirements memoryRequirements = getImageMemoryRequirements(vk, device, destImage); in allocateAndBindSparseImage() local
5305 if ((memoryRequirements.memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in allocateAndBindSparseImage()
5316 if (memoryRequirements.size > deviceProperties.limits.sparseAddressSpaceSize) in allocateAndBindSparseImage()
5342 memoryRequirements.alignment, // VkDeviceSize size; in allocateAndBindSparseImage()
5343 memoryRequirements.alignment, // VkDeviceSize alignment; in allocateAndBindSparseImage()
5344 memoryRequirements.memoryTypeBits, // uint32_t memoryTypeBits; in allocateAndBindSparseImage()
5389 memoryRequirements.alignment, // VkDeviceSize alignment; in allocateAndBindSparseImage()
5390 memoryRequirements.memoryTypeBits, // uint32_t memoryTypeBits; in allocateAndBindSparseImage()
5423 memoryRequirements.alignment, // VkDeviceSize alignment; in allocateAndBindSparseImage()
5424 memoryRequirements.memoryTypeBits, // uint32_t memoryTypeBits; in allocateAndBindSparseImage()
/external/deqp/external/vulkancts/modules/vulkan/synchronization/
DvktSynchronizationCrossInstanceSharingTests.cpp579 vk::VkMemoryRequirements memoryRequirements = { 0u, 0u, 0u, }; in getMemoryRequirements() local
607 memoryRequirements = requirements.memoryRequirements; in getMemoryRequirements()
611 vkd.getImageMemoryRequirements(device, image, &memoryRequirements); in getMemoryRequirements()
614 return memoryRequirements; in getMemoryRequirements()
623 vk::VkMemoryRequirements memoryRequirements = { 0u, 0u, 0u, }; in getMemoryRequirements() local
651 memoryRequirements = requirements.memoryRequirements; in getMemoryRequirements()
655 vkd.getBufferMemoryRequirements(device, buffer, &memoryRequirements); in getMemoryRequirements()
658 return memoryRequirements; in getMemoryRequirements()
/external/mesa3d/src/freedreno/vulkan/
Dtu_legacy.c144 *reqs = reqs2.memoryRequirements; in tu_GetBufferMemoryRequirements()
155 *reqs = reqs2.memoryRequirements; in tu_GetImageMemoryRequirements()
179 reqs[i] = reqs2[i].memoryRequirements; in tu_GetImageSparseMemoryRequirements()
/external/deqp/external/vulkancts/modules/vulkan/memory/
DvktMemoryRequirementsTests.cpp94 return req2.memoryRequirements; in getBufferMemoryRequirements2()
126 return req2.memoryRequirements; in getBufferCreateInfoMemoryRequirementsKHR()
149 return req2.memoryRequirements; in getImageMemoryRequirements2()
171 return req2.memoryRequirements; in getDeviceImageMemoryRequirements()
207 requirements[ndx] = requirements2[ndx].memoryRequirements; in getImageCreateInfoSparseMemoryRequirements()
2023 …result.check(deIsPowerOfTwo64(static_cast<deUint64>(requirements.memoryRequirements.alignment)), "… in testMultiplaneImages()
2025 …if (result.check(requirements.memoryRequirements.memoryTypeBits != 0, "No supported memory types")) in testMultiplaneImages()
2028 …<deUint32> usedMemoryTypeIndices = bitsToIndices(requirements.memoryRequirements.memoryTypeBi… in testMultiplaneImages()
/external/vulkan-headers/include/vulkan/
Dvulkan_raii.hpp11738 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getMemoryRequirements() local
11740 …atic_cast<VkBuffer>( m_buffer ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getMemoryRequirements()
11742 return memoryRequirements; in getMemoryRequirements()
11747 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getMemoryRequirements() local
11749 …static_cast<VkImage>( m_image ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getMemoryRequirements()
11751 return memoryRequirements; in getMemoryRequirements()
12710 VULKAN_HPP_NAMESPACE::MemoryRequirements2 memoryRequirements; in getImageMemoryRequirements2() local
12713 … reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) ); in getImageMemoryRequirements2()
12715 return memoryRequirements; in getImageMemoryRequirements2()
12723 …VULKAN_HPP_NAMESPACE::MemoryRequirements2 & memoryRequirements = structureChain.template get<VULKA… in getImageMemoryRequirements2() local
[all …]
Dvulkan_funcs.hpp1154 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getBufferMemoryRequirements() local
1155 …static_cast<VkBuffer>( buffer ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getBufferMemoryRequirements()
1157 return memoryRequirements; in getBufferMemoryRequirements()
1177 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getImageMemoryRequirements() local
1178 …, static_cast<VkImage>( image ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getImageMemoryRequirements()
1180 return memoryRequirements; in getImageMemoryRequirements()
5444 VULKAN_HPP_NAMESPACE::MemoryRequirements2 memoryRequirements; in getImageMemoryRequirements2() local
5446 …yRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) ); in getImageMemoryRequirements2()
5448 return memoryRequirements; in getImageMemoryRequirements2()
5458 …VULKAN_HPP_NAMESPACE::MemoryRequirements2 & memoryRequirements = structureChain.template get<VULKA… in getImageMemoryRequirements2() local
[all …]
/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/swiftshader/include/vulkan/
Dvulkan_raii.hpp10505 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getMemoryRequirements() local
10506 …atic_cast<VkBuffer>( m_buffer ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getMemoryRequirements()
10509 return memoryRequirements; in getMemoryRequirements()
10518 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getMemoryRequirements() local
10519 …static_cast<VkImage>( m_image ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getMemoryRequirements()
10522 return memoryRequirements; in getMemoryRequirements()
11630 VULKAN_HPP_NAMESPACE::MemoryRequirements2 memoryRequirements; in getImageMemoryRequirements2() local
11631 …yRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) ); in getImageMemoryRequirements2()
11634 return memoryRequirements; in getImageMemoryRequirements2()
11644 …VULKAN_HPP_NAMESPACE::MemoryRequirements2 & memoryRequirements = structureChain.template get<VULKA… in getImageMemoryRequirements2() local
[all …]
Dvulkan_funcs.hpp1011 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getBufferMemoryRequirements() local
1012 …static_cast<VkBuffer>( buffer ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getBufferMemoryRequirements()
1015 return memoryRequirements; in getBufferMemoryRequirements()
1034 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getImageMemoryRequirements() local
1035 …, static_cast<VkImage>( image ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getImageMemoryRequirements()
1038 return memoryRequirements; in getImageMemoryRequirements()
4365 VULKAN_HPP_NAMESPACE::MemoryRequirements2 memoryRequirements; in getImageMemoryRequirements2() local
4366 …yRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) ); in getImageMemoryRequirements2()
4369 return memoryRequirements; in getImageMemoryRequirements2()
4379 …VULKAN_HPP_NAMESPACE::MemoryRequirements2 & memoryRequirements = structureChain.template get<VULKA… in getImageMemoryRequirements2() local
[all …]
/external/angle/third_party/vulkan-deps/vulkan-headers/src/include/vulkan/
Dvulkan_raii.hpp11894 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getMemoryRequirements() local
11896 …atic_cast<VkBuffer>( m_buffer ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getMemoryRequirements()
11898 return memoryRequirements; in getMemoryRequirements()
11905 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getMemoryRequirements() local
11907 …static_cast<VkImage>( m_image ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getMemoryRequirements()
11909 return memoryRequirements; in getMemoryRequirements()
12997 VULKAN_HPP_NAMESPACE::MemoryRequirements2 memoryRequirements; in getImageMemoryRequirements2() local
13000 … reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) ); in getImageMemoryRequirements2()
13002 return memoryRequirements; in getImageMemoryRequirements2()
13013 …VULKAN_HPP_NAMESPACE::MemoryRequirements2 & memoryRequirements = structureChain.template get<… in getImageMemoryRequirements2() local
[all …]
Dvulkan_funcs.hpp1113 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getBufferMemoryRequirements() local
1114 …static_cast<VkBuffer>( buffer ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getBufferMemoryRequirements()
1116 return memoryRequirements; in getBufferMemoryRequirements()
1136 VULKAN_HPP_NAMESPACE::MemoryRequirements memoryRequirements; in getImageMemoryRequirements() local
1137 …, static_cast<VkImage>( image ), reinterpret_cast<VkMemoryRequirements *>( &memoryRequirements ) ); in getImageMemoryRequirements()
1139 return memoryRequirements; in getImageMemoryRequirements()
5387 VULKAN_HPP_NAMESPACE::MemoryRequirements2 memoryRequirements; in getImageMemoryRequirements2() local
5389 …yRequirementsInfo2 *>( &info ), reinterpret_cast<VkMemoryRequirements2 *>( &memoryRequirements ) ); in getImageMemoryRequirements2()
5391 return memoryRequirements; in getImageMemoryRequirements2()
5401 …VULKAN_HPP_NAMESPACE::MemoryRequirements2 & memoryRequirements = structureChain.template get<… in getImageMemoryRequirements2() local
[all …]

1234