Home
last modified time | relevance | path

Searched refs:memReqs (Results 1 – 20 of 20) sorted by relevance

/external/deqp/external/vulkancts/modules/vulkan/api/
DvktApiBufferTests.cpp206 VkMemoryRequirements memReqs; in bufferCreateAndAllocTest() local
229 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs); in bufferCreateAndAllocTest()
231 const deUint32 heapTypeIndex = (deUint32)deCtz32(memReqs.memoryTypeBits); in bufferCreateAndAllocTest()
243 memReqs.alignment, in bufferCreateAndAllocTest()
247 const VkDeviceSize maxBufferSize = deAlign64(availableBufferSize >> 1, memReqs.alignment); in bufferCreateAndAllocTest()
264 size = deAlign64(size >> shrinkBits, memReqs.alignment); in bufferCreateAndAllocTest()
266 if (size == 0 || bufferParams.size == memReqs.alignment) in bufferCreateAndAllocTest()
277 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs); // get the proper size requirement in bufferCreateAndAllocTest()
279 if (size > memReqs.size) in bufferCreateAndAllocTest()
282 …errorMsg << "Requied memory size (" << memReqs.size << " bytes) smaller than the buffer's size (" … in bufferCreateAndAllocTest()
[all …]
DvktApiBufferViewCreateTests.cpp152 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 …]
DvktApiBufferMarkerTests.cpp241 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()
DvktApiObjectManagementTests.cpp775 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()
/external/deqp/external/vulkancts/modules/vulkan/memory/
DvktMemoryBindingTests.cpp236 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 …]
DvktMemoryAllocationTests.cpp312 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()
DvktMemoryDeviceMemoryReportTests.cpp271 DeviceMemory::Parameters getDeviceMemoryParameters (const VkMemoryRequirements& memReqs) in getDeviceMemoryParameters() argument
273 return DeviceMemory::Parameters(memReqs.size, deCtz32(memReqs.memoryTypeBits)); in getDeviceMemoryParameters()
/external/deqp/external/vulkancts/framework/vulkan/
DvkMemUtil.cpp219 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()
DvkMemUtil.hpp152 …alDevice& physDevice, const VkDevice device, const VkMemoryRequirements& memReqs, const MemoryRequ…
/external/deqp/external/vulkancts/modules/vulkan/device_group/
DvktDeviceGroupRendering.cpp389 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 …]
/external/skqp/src/gpu/vk/
DGrVkMemory.cpp97 VkMemoryRequirements memReqs; in AllocAndBindImageMemory() local
98 GR_VK_CALL(gpu->vkInterface(), GetImageMemoryRequirements(gpu->device(), image, &memReqs)); in AllocAndBindImageMemory()
101 if (memReqs.size > kMaxSmallImageSize || gpu->vkCaps().shouldAlwaysUseDedicatedImageMemory()) { in AllocAndBindImageMemory()
/external/skia/src/gpu/vk/
DGrVkMemory.cpp66 VkMemoryRequirements memReqs; in AllocAndBindImageMemory() local
67 GR_VK_CALL(gpu->vkInterface(), GetImageMemoryRequirements(gpu->device(), image, &memReqs)); in AllocAndBindImageMemory()
/external/skqp/tests/
DVkHardwareBufferTest.cpp725 VkMemoryRequirements2 memReqs; in importHardwareBuffer() local
726 memReqs.sType = VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2; in importHardwareBuffer()
727 memReqs.pNext = &dedicatedMemReqs; in importHardwareBuffer()
729 fVkGetImageMemoryRequirements2(fDevice, &memReqsInfo, &memReqs); in importHardwareBuffer()
/external/deqp/external/vulkancts/modules/vulkan/descriptor_indexing/
DvktDescriptorSetsIndexingTestsUtils.cpp245 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/
DvktShaderLibrary.cpp1183 …ation> allocateAndBindMemory (Context& context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs) in allocateAndBindMemory() argument
1187 MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(bufReqs, memReqs); in allocateAndBindMemory()
1213 …ocation> allocateAndBindMemory (Context& context, vk::VkImage image, vk::MemoryRequirement memReqs) in allocateAndBindMemory() argument
1217 MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(imgReqs, memReqs); in allocateAndBindMemory()
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineRenderToImageTests.cpp750 VkMemoryRequirements memReqs; in getMemoryTypeNdx() local
759 vk.getImageMemoryRequirements(device, *colorImage, &memReqs); in getMemoryTypeNdx()
760 return selectMatchingMemoryType(memoryProperties, memReqs.memoryTypeBits, MemoryRequirement::Any); in getMemoryTypeNdx()
/external/deqp/external/vulkancts/modules/vulkan/ubo/
DvktUniformBlockCase.cpp1712 …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/
Dvklayertests_command.cpp2864 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/compute/
DvktComputeBasicComputeShaderTests.cpp2814 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()
/external/deqp/external/vulkancts/modules/vulkan/ssbo/
DvktSSBOLayoutCase.cpp2130 …ation> allocateAndBindMemory (Context& context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs) in allocateAndBindMemory() argument
2134 de::MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(bufReqs, memReqs); in allocateAndBindMemory()