Home | History | Annotate | Download | only in api

Lines Matching defs:memory

71 		// 'UMA' systems where device memory counts against system memory
76 // 'LMA' systems where device memory is local to the GPU
314 Move<VkDeviceMemory> memory;
322 // Create the test buffer and a memory allocation for it
324 // Create a minimal buffer first to get the supported memory types
348 // However on a system where device memory is shared with the system, the maximum size
349 // should be tested against the platform memory limits as significant portion of the heap
360 while (*memory == DE_NULL)
391 errorMsg << "Requied memory size (" << memReqs.size << " bytes) smaller than the buffer's size (" << size << " bytes)!";
395 // Allocate the memory
417 return tcu::TestStatus::fail("Unable to allocate " + de::toString(memReqs.size) + " bytes of memory");
423 memory = Move<VkDeviceMemory>(check<VkDeviceMemory>(rawMemory), Deleter<VkDeviceMemory>(vk, vkDevice, DE_NULL));
428 // Bind the memory
437 *memory, // VkDeviceMemory memory;
469 return tcu::TestStatus::fail("Bind sparse buffer memory failed! (requested memory size: " + de::toString(size) + ")");
473 else if (vk.bindBufferMemory(vkDevice, *buffer, *memory, 0) != VK_SUCCESS)
474 return tcu::TestStatus::fail("Bind buffer memory failed! (requested memory size: " + de::toString(size) + ")");
541 // Create a minimal buffer first to get the supported memory types
580 // However on a system where device memory is shared with the system, the maximum size
581 // should be tested against the platform memory limits as a significant portion of the heap
587 Move<VkDeviceMemory> memory;
589 while (*memory == DE_NULL)
619 errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than the buffer's size (" << size << " bytes)!";
623 // Allocate the memory
652 return tcu::TestStatus::fail("Unable to allocate " + de::toString(memReqs.memoryRequirements.size) + " bytes of memory");
657 memory = Move<VkDeviceMemory>(check<VkDeviceMemory>(rawMemory), Deleter<VkDeviceMemory>(vk, vkDevice, DE_NULL));
661 if (vk.bindBufferMemory(vkDevice, *buffer, *memory, 0) != VK_SUCCESS)
662 return tcu::TestStatus::fail("Bind buffer memory failed! (requested memory size: " + de::toString(size) + ")");
787 de::MovePtr<tcu::TestCaseGroup> regularAllocation (new tcu::TestCaseGroup(testCtx, "suballocation", "Regular suballocation of memory."));
793 de::MovePtr<tcu::TestCaseGroup> dedicatedAllocation (new tcu::TestCaseGroup(testCtx, "dedicated_alloc", "Dedicated allocation of memory."));