/external/deqp/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() 284 if (size > memReqs.size) in bufferCreateAndAllocTest() 287 …errorMsg << "Required 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() 180 if (size > memReqs.size) in createTestBuffer() 183 …errorMsg << "Required memory size (" << memReqs.size << " bytes) smaller than the buffer's size ("… in createTestBuffer() 192 memReqs.size, // VkDeviceSize allocationSize in createTestBuffer() 193 (deUint32)deCtz32(memReqs.memoryTypeBits) // deUint32 memoryTypeIndex in createTestBuffer() 230 VkMemoryRequirements2 memReqs = in createTestBuffer() local 265 vk.getBufferMemoryRequirements2(vkDevice, &info, &memReqs); in createTestBuffer() 274 if (size > memReqs.memoryRequirements.size) in createTestBuffer() 277 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in createTestBuffer() [all …]
|
D | vktApiBufferMarkerTests.cpp | 257 VkMemoryRequirements memReqs = getBufferMemoryRequirements(vkd, device, buffer); in createMarkerBufferMemory() local 261 deviceMemory = allocator->allocate(memReqs, allocRequirement); in createMarkerBufferMemory() 268 bufferOffset = deAlignSize(bufferOffset, static_cast<size_t>(memReqs.alignment)); in createMarkerBufferMemory() 269 …hostMemory = MovePtr<ExternalHostMemory>(new ExternalHostMemory(memReqs.size + bufferOffset, hostP… in createMarkerBufferMemory() 271 …ernalMemType = chooseExternalMarkerMemoryType(vkd, device, externalType, memReqs.memoryTypeBits, h… in createMarkerBufferMemory()
|
D | vktApiObjectManagementTests.cpp | 911 DeviceMemory::Parameters getDeviceMemoryParameters (const VkMemoryRequirements& memReqs) in getDeviceMemoryParameters() argument 913 return DeviceMemory::Parameters(memReqs.size, deCtz32(memReqs.memoryTypeBits)); in getDeviceMemoryParameters() 952 const VkMemoryRequirements memReqs = getBufferMemoryRequirements(env.vkd, env.device, *buffer); in getMaxConcurrent() local 957 getPageTableSize(context, memReqs.size)); in getMaxConcurrent() 1085 const VkMemoryRequirements memReqs = getImageMemoryRequirements(env.vkd, env.device, *image); in getMaxConcurrent() local 1090 getPageTableSize(context, memReqs.size)); in getMaxConcurrent()
|
/external/deqp/external/vulkancts/modules/vulkan/memory/ |
D | vktMemoryBindingTests.cpp | 245 const VkMemoryAllocateInfo makeMemoryAllocateInfo (VkMemoryRequirements& memReqs, in makeMemoryAllocateInfo() argument 248 const deUint32 heapTypeIndex = (deUint32)deCtz32(memReqs.memoryTypeBits); in makeMemoryAllocateInfo() 253 memReqs.size, // VkDeviceSize allocationSize; in makeMemoryAllocateInfo() 266 VkMemoryRequirements& memReqs, in selectMatchingMemoryType() argument 278 const deBool isInAllowed = (memReqs.memoryTypeBits & (1u << typeNdx)) != 0u; in selectMatchingMemoryType() 284 return (deUint32)deCtz32(memReqs.memoryTypeBits); in selectMatchingMemoryType() 288 VkMemoryRequirements& memReqs, in makeMemoryAllocateInfo() argument 291 const deUint32 heapTypeIndex = selectMatchingMemoryType(ctx, memReqs, memoryVisibility); in makeMemoryAllocateInfo() 296 memReqs.size, // VkDeviceSize allocationSize; in makeMemoryAllocateInfo() 602 VkMemoryRequirements memReqs; in createMemory() local [all …]
|
D | vktMemoryAllocationTests.cpp | 381 VkMemoryRequirements memReqs; in iterate() local 439 vkd.getBufferMemoryRequirements(device, *buffer, &memReqs); in iterate() 442 …const VkDeviceSize allocationSize = (m_config.memorySize ? memReqs.size : (VkDeviceSize)(*m_confi… in iterate() 502 …if (res == VK_ERROR_OUT_OF_DEVICE_MEMORY && (memReqs.memoryTypeBits & (1 << m_memoryTypeIndex)) ==… in iterate()
|
D | vktMemoryAddressBindingTests.cpp | 300 DeviceMemory::Parameters getDeviceMemoryParameters (const VkMemoryRequirements& memReqs) in getDeviceMemoryParameters() argument 302 return DeviceMemory::Parameters(memReqs.size, deCtz32(memReqs.memoryTypeBits)); in getDeviceMemoryParameters()
|
D | vktMemoryDeviceMemoryReportTests.cpp | 272 DeviceMemory::Parameters getDeviceMemoryParameters (const VkMemoryRequirements& memReqs) in getDeviceMemoryParameters() argument 274 return DeviceMemory::Parameters(memReqs.size, deCtz32(memReqs.memoryTypeBits)); in getDeviceMemoryParameters()
|
/external/deqp/external/vulkancts/framework/vulkan/ |
D | vkMemUtil.cpp | 213 MovePtr<Allocation> SimpleAllocator::allocate (const VkMemoryRequirements& memReqs, MemoryRequireme… in allocate() argument 215 …const deUint32 memoryTypeNdx = selectMatchingMemoryType(m_memProps, memReqs.memoryTypeBits, req… in allocate() 217 size_t offset = deAlignSize(m_offset, static_cast<size_t>(memReqs.alignment)); in allocate() 223 memReqs.size + offset, // VkDeviceSize allocationSize; in allocate() 250 hostPtr = MovePtr<HostPtr>(new HostPtr(m_vk, m_device, *mem, offset, memReqs.size, 0u)); 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 | 155 …alDevice& physDevice, const VkDevice device, const VkMemoryRequirements& memReqs, const MemoryRequ…
|
/external/deqp/external/vulkancts/modules/vulkan/device_group/ |
D | vktDeviceGroupRendering.cpp | 443 VkMemoryRequirements memReqs = in iterate() local 548 memReqs = getBufferMemoryRequirements(vk, *m_deviceGroup, vertexBuffer.get()); in iterate() 549 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate() 552 allocInfo.allocationSize = memReqs.size; in iterate() 620 memReqs = getBufferMemoryRequirements(vk, *m_deviceGroup, indexBuffer.get()); in iterate() 621 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate() 624 allocInfo.allocationSize = memReqs.size; in iterate() 692 memReqs = getBufferMemoryRequirements(vk, *m_deviceGroup, uniformBuffer.get()); in iterate() 693 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate() 696 allocInfo.allocationSize = memReqs.size; in iterate() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/ssbo/ |
D | vktSSBOCornerCase.cpp | 116 …BindMemory (Context &context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs, vk::VkDeviceSize… 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()
|
/external/deqp/external/vulkancts/modules/vulkan/binding_model/ |
D | vktBindingDescriptorBufferTests.cpp | 2252 MovePtr<Allocation> allocate (const VkMemoryRequirements& memReqs, in allocate() argument 2261 memReqs, in allocate() 2946 auto memReqs = MemoryRequirement::Local | MemoryRequirement::HostVisible; in createDescriptorBuffers() local 2947 … compatMask = bufferMemReqs.memoryTypeBits & getCompatibleMemoryTypes(m_memoryProperties, memReqs); in createDescriptorBuffers() 2951 bufferAlloc.alloc = allocate(bufferMemReqs, memReqs, &allocFlagsInfo); in createDescriptorBuffers() 3263 auto memReqs = getImageMemoryRequirements(*m_deviceInterface, *m_device, *m_colorImage.image); in createGraphicsPipeline() local 3264 m_colorImage.sizeBytes = memReqs.size; in createGraphicsPipeline() 3265 m_colorImage.alloc = allocate(memReqs, MemoryRequirement::Local); in createGraphicsPipeline() 3280 auto memReqs = getBufferMemoryRequirements(*m_deviceInterface, *m_device, *m_colorBuffer.buffer); in createGraphicsPipeline() local 3282 m_colorBuffer.alloc = allocate(memReqs, MemoryRequirement::HostVisible); in createGraphicsPipeline() [all …]
|
/external/deqp/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()
|
/external/deqp/external/vulkancts/modules/vulkan/synchronization/ |
D | vktGlobalPriorityQueueTests.cpp | 743 …const MemoryRequirement memReqs = (m_config.enableProtected ? MemoryRequirement::Protected : … in iterate() local 756 …BufferWithMemory vertexBuffer (vki, vkd, phys, device, allocator, vertBuffInfo, memReqs, produ… in iterate() 757 …BufferWithMemory indexBuffer (vki, vkd, phys, device, allocator, indexBuffInfo, memReqs, prod… in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/pipeline/ |
D | vktPipelineRenderToImageTests.cpp | 654 VkMemoryRequirements memReqs; in getMemoryTypeNdx() local 663 vk.getImageMemoryRequirements(device, *colorImage, &memReqs); in getMemoryTypeNdx() 664 return selectMatchingMemoryType(memoryProperties, memReqs.memoryTypeBits, MemoryRequirement::Any); in getMemoryTypeNdx()
|
/external/deqp/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()
|
/external/vulkan-validation-layers/tests/ |
D | vklayertests_command.cpp | 2864 VkMemoryRequirements memReqs; in TEST_F() local 2905 vkGetImageMemoryRequirements(m_device->device(), srcImage, &memReqs); in TEST_F() 2906 memAlloc.allocationSize = memReqs.size; in TEST_F() 2907 pass = m_device->phy().set_memory_type(memReqs.memoryTypeBits, &memAlloc, 0); in TEST_F() 2912 vkGetImageMemoryRequirements(m_device->device(), dstImage, &memReqs); in TEST_F() 2913 memAlloc.allocationSize = memReqs.size; in TEST_F() 2914 pass = m_device->phy().set_memory_type(memReqs.memoryTypeBits, &memAlloc, 0); in TEST_F()
|
/external/deqp/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()
|
/external/deqp/external/vulkancts/modules/vulkan/compute/ |
D | vktComputeBasicComputeShaderTests.cpp | 2854 VkMemoryRequirements memReqs = getBufferMemoryRequirements(vk, device, sboBuffer.get()); in iterate() local 2859 if ((memReqs.memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in iterate() 2878 memReqs.size, // allocationSize in iterate()
|