/external/deqp/external/vulkancts/modules/vulkan/api/ |
D | vktApiBufferTests.cpp | 333 VkMemoryRequirements memReqs; in bufferCreateAndAllocTest() local 356 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs); in bufferCreateAndAllocTest() 358 const deUint32 heapTypeIndex = (deUint32)deCtz32(memReqs.memoryTypeBits); in bufferCreateAndAllocTest() 370 memReqs.alignment, in bufferCreateAndAllocTest() 374 const VkDeviceSize maxBufferSize = deAlign64(availableBufferSize >> 1, memReqs.alignment); in bufferCreateAndAllocTest() 391 size = deAlign64(size >> shrinkBits, memReqs.alignment); in bufferCreateAndAllocTest() 393 if (size == 0 || bufferParams.size == memReqs.alignment) in bufferCreateAndAllocTest() 404 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs); // get the proper size requirement in bufferCreateAndAllocTest() 406 if (size > memReqs.size) in bufferCreateAndAllocTest() 409 …errorMsg << "Requied memory size (" << memReqs.size << " bytes) smaller than the buffer's size (" … in bufferCreateAndAllocTest() [all …]
|
D | vktApiBufferViewCreateTests.cpp | 154 VkMemoryRequirements memReqs; in createTestBuffer() local 176 vk.getBufferMemoryRequirements(vkDevice, *testBuffer, &memReqs); in createTestBuffer() 178 if (size > memReqs.size) in createTestBuffer() 181 …errorMsg << "Requied memory size (" << memReqs.size << " bytes) smaller than the buffer's size (" … in createTestBuffer() 189 memReqs.size, // VkDeviceSize allocationSize in createTestBuffer() 190 (deUint32)deCtz32(memReqs.memoryTypeBits) // deUint32 memoryTypeIndex in createTestBuffer() 227 VkMemoryRequirements2 memReqs = in createTestBuffer() local 262 vk.getBufferMemoryRequirements2(vkDevice, &info, &memReqs); in createTestBuffer() 271 if (size > memReqs.memoryRequirements.size) in createTestBuffer() 274 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in createTestBuffer() [all …]
|
D | vktApiObjectManagementTests.cpp | 758 DeviceMemory::Parameters getDeviceMemoryParameters (const VkMemoryRequirements& memReqs) in getDeviceMemoryParameters() argument 760 return DeviceMemory::Parameters(memReqs.size, deCtz32(memReqs.memoryTypeBits)); in getDeviceMemoryParameters() 799 const VkMemoryRequirements memReqs = getBufferMemoryRequirements(env.vkd, env.device, *buffer); in getMaxConcurrent() local 804 getPageTableSize(context, memReqs.size)); in getMaxConcurrent() 932 const VkMemoryRequirements memReqs = getImageMemoryRequirements(env.vkd, env.device, *image); in getMaxConcurrent() local 937 getPageTableSize(context, memReqs.size)); in getMaxConcurrent()
|
/external/deqp/external/vulkancts/modules/vulkan/memory/ |
D | vktMemoryBindingTests.cpp | 231 const VkMemoryAllocateInfo makeMemoryAllocateInfo (VkMemoryRequirements& memReqs, in makeMemoryAllocateInfo() argument 234 const deUint32 heapTypeIndex = (deUint32)deCtz32(memReqs.memoryTypeBits); in makeMemoryAllocateInfo() 239 memReqs.size, // VkDeviceSize allocationSize; in makeMemoryAllocateInfo() 252 VkMemoryRequirements& memReqs, in selectMatchingMemoryType() argument 264 const deBool isInAllowed = (memReqs.memoryTypeBits & (1u << typeNdx)) != 0u; in selectMatchingMemoryType() 270 return (deUint32)deCtz32(memReqs.memoryTypeBits); in selectMatchingMemoryType() 274 VkMemoryRequirements& memReqs, in makeMemoryAllocateInfo() argument 277 const deUint32 heapTypeIndex = selectMatchingMemoryType(ctx, memReqs, memoryVisibility); in makeMemoryAllocateInfo() 282 memReqs.size, // VkDeviceSize allocationSize; in makeMemoryAllocateInfo() 474 VkMemoryRequirements memReqs; in createMemory() local [all …]
|
D | vktMemoryAllocationTests.cpp | 247 VkMemoryRequirements memReqs; in iterate() local 273 vkd.getBufferMemoryRequirements(device, *buffer, &memReqs); in iterate() 297 …const VkDeviceSize allocationSize = (m_config.memorySize ? memReqs.size : (VkDeviceSize)(*m_confi… in iterate()
|
/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() 220 memReqs.size, // VkDeviceSize allocationSize; in allocate() 240 const VkMemoryRequirements& memReqs, in allocateDedicated() argument 245 …const deUint32 memoryTypeNdx = selectMatchingMemoryType(memoryProperties, memReqs.memoryTyp… in allocateDedicated() 250 memReqs.size, // VkDeviceSize allocationSize in allocateDedicated()
|
/external/deqp/external/vulkancts/modules/vulkan/device_group/ |
D | vktDeviceGroupRendering.cpp | 412 VkMemoryRequirements memReqs = in iterate() local 516 memReqs = getBufferMemoryRequirements(vk, *m_deviceGroup, vertexBuffer.get()); in iterate() 517 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate() 520 allocInfo.allocationSize = memReqs.size; in iterate() 588 memReqs = getBufferMemoryRequirements(vk, *m_deviceGroup, indexBuffer.get()); in iterate() 589 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate() 592 allocInfo.allocationSize = memReqs.size; in iterate() 660 memReqs = getBufferMemoryRequirements(vk, *m_deviceGroup, uniformBuffer.get()); in iterate() 661 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate() 664 allocInfo.allocationSize = memReqs.size; in iterate() [all …]
|
/external/skia/src/gpu/vk/ |
D | GrVkMemory.cpp | 97 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/skqp/src/gpu/vk/ |
D | GrVkMemory.cpp | 97 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/skqp/tests/ |
D | VkHardwareBufferTest.cpp | 724 VkMemoryRequirements2 memReqs; in importHardwareBuffer() local 725 memReqs.sType = VK_STRUCTURE_TYPE_MEMORY_REQUIREMENTS_2; in importHardwareBuffer() 726 memReqs.pNext = &dedicatedMemReqs; in importHardwareBuffer() 728 fVkGetImageMemoryRequirements2(fDevice, &memReqsInfo, &memReqs); in importHardwareBuffer()
|
/external/deqp/external/vulkancts/modules/vulkan/ |
D | vktShaderLibrary.cpp | 1183 …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/ |
D | vktPipelineRenderToImageTests.cpp | 753 VkMemoryRequirements memReqs; in getMemoryTypeNdx() local 762 vk.getImageMemoryRequirements(device, *colorImage, &memReqs); in getMemoryTypeNdx() 763 return selectMatchingMemoryType(memoryProperties, memReqs.memoryTypeBits, MemoryRequirement::Any); in getMemoryTypeNdx()
|
/external/deqp/external/vulkancts/modules/vulkan/ubo/ |
D | vktUniformBlockCase.cpp | 1735 …ation> allocateAndBindMemory (Context& context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs) in allocateAndBindMemory() argument 1739 de::MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(bufReqs, memReqs); in allocateAndBindMemory() 1746 …ocation> allocateAndBindMemory (Context& context, vk::VkImage image, vk::MemoryRequirement memReqs) in allocateAndBindMemory() argument 1750 de::MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(imgReqs, memReqs); in allocateAndBindMemory()
|
/external/vulkan-validation-layers/tests/ |
D | layer_validation_tests.cpp | 10287 VkMemoryRequirements memReqs; in TEST_F() local 10288 vkGetBufferMemoryRequirements(m_device->device(), buffer, &memReqs); in TEST_F() 10292 mem_alloc.allocationSize = memReqs.size; in TEST_F() 10294 bool pass = m_device->phy().set_memory_type(memReqs.memoryTypeBits, &mem_alloc, 0); in TEST_F() 12069 VkMemoryRequirements memReqs; in TEST_F() local 12070 vkGetBufferMemoryRequirements(m_device->device(), dyub, &memReqs); in TEST_F() 12074 mem_alloc.allocationSize = memReqs.size; in TEST_F() 12076 bool pass = m_device->phy().set_memory_type(memReqs.memoryTypeBits, &mem_alloc, 0); in TEST_F() 25919 VkMemoryRequirements memReqs; in TEST_F() local 25960 vkGetImageMemoryRequirements(m_device->device(), srcImage, &memReqs); in TEST_F() [all …]
|
/external/deqp/external/vulkancts/modules/vulkan/compute/ |
D | vktComputeBasicComputeShaderTests.cpp | 2807 VkMemoryRequirements memReqs = getBufferMemoryRequirements(vk, device, sboBuffer.get()); in iterate() local 2812 if ((memReqs.memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in iterate() 2831 memReqs.size, // allocationSize in iterate()
|
/external/deqp/external/vulkancts/modules/vulkan/ssbo/ |
D | vktSSBOLayoutCase.cpp | 2062 …ation> allocateAndBindMemory (Context& context, vk::VkBuffer buffer, vk::MemoryRequirement memReqs) in allocateAndBindMemory() argument 2066 de::MovePtr<vk::Allocation> memory = context.getDefaultAllocator().allocate(bufReqs, memReqs); in allocateAndBindMemory()
|