• Home
  • Raw
  • Download

Lines Matching refs:memReqs

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()
297 memReqs.size, // VkDeviceSize allocationSize; in bufferCreateAndAllocTest()
305 size = deAlign64(size >> shrinkBits, memReqs.alignment); in bufferCreateAndAllocTest()
307 if (size == 0 || memReqs.size == memReqs.alignment) in bufferCreateAndAllocTest()
309 …return tcu::TestStatus::fail("Unable to allocate " + de::toString(memReqs.size) + " bytes of memor… in bufferCreateAndAllocTest()
328 memReqs.size, // VkDeviceSize size; in bufferCreateAndAllocTest()
412 VkMemoryRequirements2 memReqs = in bufferCreateAndAllocTest() local
444 vk.getBufferMemoryRequirements2(vkDevice, &info, &memReqs); in bufferCreateAndAllocTest()
453 …const deUint32 heapTypeIndex = static_cast<deUint32>(deCtz32(memReqs.memoryRequirements.m… in bufferCreateAndAllocTest()
465 memReqs.memoryRequirements.alignment, in bufferCreateAndAllocTest()
469 size = deAlign64(std::min(size, maxBufferSize >> 1), memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest()
483 size = deAlign64(size >> shrinkBits, memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest()
485 if (size == 0 || bufferParams.size == memReqs.memoryRequirements.alignment) in bufferCreateAndAllocTest()
495 vk.getBufferMemoryRequirements2(vkDevice, &info, &memReqs); // get the proper size requirement in bufferCreateAndAllocTest()
497 if (size > memReqs.memoryRequirements.size) in bufferCreateAndAllocTest()
500 …errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than th… in bufferCreateAndAllocTest()
522 memReqs.memoryRequirements.size, // VkDeviceSize allocationSize in bufferCreateAndAllocTest()
530 size = deAlign64(size >> shrinkBits, memReqs.memoryRequirements.alignment); in bufferCreateAndAllocTest()
532 if (size == 0 || memReqs.memoryRequirements.size == memReqs.memoryRequirements.alignment) in bufferCreateAndAllocTest()
533 …return tcu::TestStatus::fail("Unable to allocate " + de::toString(memReqs.memoryRequirements.size)… in bufferCreateAndAllocTest()