Lines Matching defs:memory

73 		// 'UMA' systems where device memory counts against system memory
78 // 'LMA' systems where device memory is local to the GPU
204 Move<VkDeviceMemory> memory;
212 // Create the test buffer and a memory allocation for it
214 // Create a minimal buffer first to get the supported memory types
238 // However on a system where device memory is shared with the system, the maximum size
239 // should be tested against the platform memory limits as significant portion of the heap
250 while (*memory == DE_NULL)
285 errorMsg << "Required memory size (" << memReqs.size << " bytes) smaller than the buffer's size (" << size << " bytes)!";
290 // Allocate the memory
312 return tcu::TestStatus::fail("Unable to allocate " + de::toString(memReqs.size) + " bytes of memory");
318 memory = Move<VkDeviceMemory>(check<VkDeviceMemory>(rawMemory), Deleter<VkDeviceMemory>(vk, vkDevice, DE_NULL));
323 // Bind the memory
333 *memory, // VkDeviceMemory memory;
365 return tcu::TestStatus::fail("Bind sparse buffer memory failed! (requested memory size: " + de::toString(size) + ")");
369 else if (vk.bindBufferMemory(vkDevice, *buffer, *memory, 0) != VK_SUCCESS)
370 return tcu::TestStatus::fail("Bind buffer memory failed! (requested memory size: " + de::toString(size) + ")");
372 if (vk.bindBufferMemory(vkDevice, *buffer, *memory, 0) != VK_SUCCESS)
373 return tcu::TestStatus::fail("Bind buffer memory failed! (requested memory size: " + de::toString(size) + ")");
432 // Create a minimal buffer first to get the supported memory types
474 // However on a system where device memory is shared with the system, the maximum size
475 // should be tested against the platform memory limits as a significant portion of the heap
481 Move<VkDeviceMemory> memory;
483 while (*memory == DE_NULL)
513 errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than the buffer's size (" << size << " bytes)!";
517 // Allocate the memory
546 return tcu::TestStatus::fail("Unable to allocate " + de::toString(memReqs.memoryRequirements.size) + " bytes of memory");
551 memory = Move<VkDeviceMemory>(check<VkDeviceMemory>(rawMemory), Deleter<VkDeviceMemory>(vk, vkDevice, DE_NULL));
555 if (vk.bindBufferMemory(vkDevice, *buffer, *memory, 0) != VK_SUCCESS)
556 return tcu::TestStatus::fail("Bind buffer memory failed! (requested memory size: " + de::toString(size) + ")");
728 // if buffer creation succeeds verify that the correct amount of memory was bound to it