/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/ |
D | vktApiBufferTests.cpp | 207 VkMemoryRequirements memReqs; in bufferCreateAndAllocTest() local 230 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs); in bufferCreateAndAllocTest() 232 const deUint32 heapTypeIndex = (deUint32)deCtz32(memReqs.memoryTypeBits); in bufferCreateAndAllocTest() 244 memReqs.alignment, in bufferCreateAndAllocTest() 248 const VkDeviceSize maxBufferSize = deAlign64(availableBufferSize >> 1, memReqs.alignment); in bufferCreateAndAllocTest() 265 size = deAlign64(size >> shrinkBits, memReqs.alignment); in bufferCreateAndAllocTest() 267 if (size == 0 || bufferParams.size == memReqs.alignment) in bufferCreateAndAllocTest() 278 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs); // get the proper size requirement in bufferCreateAndAllocTest() 280 if (size > memReqs.size) in bufferCreateAndAllocTest() 283 …errorMsg << "Requied memory size (" << memReqs.size << " bytes) smaller than the buffer's size (" … in bufferCreateAndAllocTest() [all …]
|
D | vktApiBufferViewCreateTests.cpp | 152 VkMemoryRequirements memReqs; in createTestBuffer() local 174 vk.getBufferMemoryRequirements(vkDevice, *testBuffer, &memReqs); in createTestBuffer() 176 if (size > memReqs.size) in createTestBuffer() 179 …errorMsg << "Requied memory size (" << memReqs.size << " bytes) smaller than the buffer's size (" … in createTestBuffer() 187 memReqs.size, // VkDeviceSize allocationSize in createTestBuffer() 188 (deUint32)deCtz32(memReqs.memoryTypeBits) // deUint32 memoryTypeIndex in createTestBuffer() 225 VkMemoryRequirements2 memReqs = in createTestBuffer() local 260 vk.getBufferMemoryRequirements2(vkDevice, &info, &memReqs); in createTestBuffer() 269 if (size > memReqs.memoryRequirements.size) in createTestBuffer() 272 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in createTestBuffer() [all …]
|
D | vktApiBufferMarkerTests.cpp | 241 VkMemoryRequirements memReqs = getBufferMemoryRequirements(vkd, device, buffer); in createMarkerBufferMemory() local 245 deviceMemory = allocator->allocate(memReqs, allocRequirement); in createMarkerBufferMemory() 253 …hostMemory = MovePtr<ExternalHostMemory>(new ExternalHostMemory(memReqs.size, hostProps.minImporte… in createMarkerBufferMemory() 255 …ernalMemType = chooseExternalMarkerMemoryType(vkd, device, externalType, memReqs.memoryTypeBits, h… in createMarkerBufferMemory()
|
D | vktApiObjectManagementTests.cpp | 775 DeviceMemory::Parameters getDeviceMemoryParameters (const VkMemoryRequirements& memReqs) in getDeviceMemoryParameters() argument 777 return DeviceMemory::Parameters(memReqs.size, deCtz32(memReqs.memoryTypeBits)); in getDeviceMemoryParameters() 816 const VkMemoryRequirements memReqs = getBufferMemoryRequirements(env.vkd, env.device, *buffer); in getMaxConcurrent() local 821 getPageTableSize(context, memReqs.size)); in getMaxConcurrent() 949 const VkMemoryRequirements memReqs = getImageMemoryRequirements(env.vkd, env.device, *image); in getMaxConcurrent() local 954 getPageTableSize(context, memReqs.size)); in getMaxConcurrent()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/ |
D | vktMemoryBindingTests.cpp | 236 const VkMemoryAllocateInfo makeMemoryAllocateInfo (VkMemoryRequirements& memReqs, in makeMemoryAllocateInfo() argument 239 const deUint32 heapTypeIndex = (deUint32)deCtz32(memReqs.memoryTypeBits); in makeMemoryAllocateInfo() 244 memReqs.size, // VkDeviceSize allocationSize; in makeMemoryAllocateInfo() 257 VkMemoryRequirements& memReqs, in selectMatchingMemoryType() argument 269 const deBool isInAllowed = (memReqs.memoryTypeBits & (1u << typeNdx)) != 0u; in selectMatchingMemoryType() 275 return (deUint32)deCtz32(memReqs.memoryTypeBits); in selectMatchingMemoryType() 279 VkMemoryRequirements& memReqs, in makeMemoryAllocateInfo() argument 282 const deUint32 heapTypeIndex = selectMatchingMemoryType(ctx, memReqs, memoryVisibility); in makeMemoryAllocateInfo() 287 memReqs.size, // VkDeviceSize allocationSize; in makeMemoryAllocateInfo() 491 VkMemoryRequirements memReqs; in createMemory() local [all …]
|
D | vktMemoryAllocationTests.cpp | 312 VkMemoryRequirements memReqs; in iterate() local 363 vkd.getBufferMemoryRequirements(device, *buffer, &memReqs); in iterate() 366 …const VkDeviceSize allocationSize = (m_config.memorySize ? memReqs.size : (VkDeviceSize)(*m_confi… in iterate()
|
D | vktMemoryDeviceMemoryReportTests.cpp | 272 DeviceMemory::Parameters getDeviceMemoryParameters (const VkMemoryRequirements& memReqs) in getDeviceMemoryParameters() argument 274 return DeviceMemory::Parameters(memReqs.size, deCtz32(memReqs.memoryTypeBits)); in getDeviceMemoryParameters()
|
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
D | vkMemUtil.cpp | 219 MovePtr<Allocation> SimpleAllocator::allocate (const VkMemoryRequirements& memReqs, MemoryRequireme… in allocate() argument 221 …const deUint32 memoryTypeNdx = selectMatchingMemoryType(m_memProps, memReqs.memoryTypeBits, req… in allocate() 226 memReqs.size, // VkDeviceSize allocationSize; in allocate() 260 const VkMemoryRequirements& memReqs, in allocateExtended() argument 265 …const deUint32 memoryTypeNdx = selectMatchingMemoryType(memoryProperties, memReqs.memoryTyp… in allocateExtended() 270 memReqs.size, // VkDeviceSize allocationSize in allocateExtended()
|
D | vkMemUtil.hpp | 152 …alDevice& physDevice, const VkDevice device, const VkMemoryRequirements& memReqs, const MemoryRequ…
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/device_group/ |
D | vktDeviceGroupRendering.cpp | 389 VkMemoryRequirements memReqs = in iterate() local 493 memReqs = getBufferMemoryRequirements(vk, *m_deviceGroup, vertexBuffer.get()); in iterate() 494 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate() 497 allocInfo.allocationSize = memReqs.size; in iterate() 565 memReqs = getBufferMemoryRequirements(vk, *m_deviceGroup, indexBuffer.get()); in iterate() 566 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate() 569 allocInfo.allocationSize = memReqs.size; in iterate() 637 memReqs = getBufferMemoryRequirements(vk, *m_deviceGroup, uniformBuffer.get()); in iterate() 638 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate() 641 allocInfo.allocationSize = memReqs.size; in iterate() [all …]
|
/third_party/flutter/skia/src/gpu/vk/ |
D | GrVkMemory.cpp | 96 VkMemoryRequirements memReqs; in AllocAndBindImageMemory() local 97 GR_VK_CALL(gpu->vkInterface(), GetImageMemoryRequirements(gpu->device(), image, &memReqs)); in AllocAndBindImageMemory() 102 } else if (memReqs.size > kMaxSmallImageSize || in AllocAndBindImageMemory()
|
/third_party/skia/src/gpu/vk/ |
D | GrVkMemory.cpp | 65 VkMemoryRequirements memReqs; in AllocAndBindImageMemory() local 66 GR_VK_CALL(gpu->vkInterface(), GetImageMemoryRequirements(gpu->device(), image, &memReqs)); in AllocAndBindImageMemory()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ssbo/ |
D | vktSSBOCornerCase.cpp | 116 …ation> allocateAndBindMemory (Context &context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs) in allocateAndBindMemory() argument 120 de::MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(bufReqs, memReqs); in allocateAndBindMemory()
|
D | vktSSBOLayoutCase.cpp | 2011 …ation> allocateAndBindMemory (Context& context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs) in allocateAndBindMemory() argument 2015 de::MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(bufReqs, memReqs); in allocateAndBindMemory()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/descriptor_indexing/ |
D | vktDescriptorSetsIndexingTestsUtils.cpp | 245 const VkMemoryRequirements memReqs = vk::getImageMemoryRequirements(dinterface, device, *image); in createImageAndBind() local 246 de::MovePtr<Allocation> allocation = allocator.allocate(memReqs, MemoryRequirement::Any); in createImageAndBind()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineRenderToImageTests.cpp | 750 VkMemoryRequirements memReqs; in getMemoryTypeNdx() local 759 vk.getImageMemoryRequirements(device, *colorImage, &memReqs); in getMemoryTypeNdx() 760 return selectMatchingMemoryType(memoryProperties, memReqs.memoryTypeBits, MemoryRequirement::Any); in getMemoryTypeNdx()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ubo/ |
D | vktUniformBlockCase.cpp | 1712 …ation> allocateAndBindMemory (Context& context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs) in allocateAndBindMemory() argument 1716 de::MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(bufReqs, memReqs); in allocateAndBindMemory() 1723 …ocation> allocateAndBindMemory (Context& context, vk::VkImage image, vk::MemoryRequirement memReqs) in allocateAndBindMemory() argument 1727 de::MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(imgReqs, memReqs); in allocateAndBindMemory()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ |
D | vktShaderLibrary.cpp | 1202 …ocation> allocateAndBindMemory (Context& context, vk::VkImage image, vk::MemoryRequirement memReqs) in allocateAndBindMemory() argument 1206 MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(imgReqs, memReqs); in allocateAndBindMemory()
|
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/compute/ |
D | vktComputeBasicComputeShaderTests.cpp | 2814 VkMemoryRequirements memReqs = getBufferMemoryRequirements(vk, device, sboBuffer.get()); in iterate() local 2819 if ((memReqs.memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in iterate() 2838 memReqs.size, // allocationSize in iterate()
|