Lines Matching defs:buffer
150 TCU_THROW(NotSupportedError, "Sparse buffer residency feature is not supported");
203 Move<VkBuffer> buffer;
212 // Create the test buffer and a memory allocation for it
214 // Create a minimal buffer first to get the supported memory types
227 buffer = createBuffer(vk, vkDevice, &bufferParams);
228 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs);
235 // Buffer size - Choose half of the reported heap size for the maximum buffer size, we
245 // For our test buffer size, halve the maximum available size and align
252 // Create the buffer
258 buffer = Move<VkBuffer>(); // free the previous buffer, if any
270 continue; // didn't work, try with a smaller buffer
273 buffer = Move<VkBuffer>(check<VkBuffer>(rawBuffer), Deleter<VkBuffer>(vk, vkDevice, DE_NULL));
276 vk.getBufferMemoryRequirements(vkDevice, *buffer, &memReqs); // get the proper size requirement
285 errorMsg << "Required memory size (" << memReqs.size << " bytes) smaller than the buffer's size (" << size << " bytes)!";
315 continue; // didn't work, try with a smaller allocation (and a smaller buffer)
341 *buffer, // VkBuffer buffer;
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) + ")");
388 ~0ull, // try to exercise a very large buffer too (will be clamped to a sensible size later)
432 // Create a minimal buffer first to get the supported memory types
445 Move<VkBuffer> buffer = createBuffer(vk, vkDevice, &bufferParams);
451 *buffer // VkBuffer buffer
471 // Buffer size - Choose half of the reported heap size for the maximum buffer size, we
485 // Create the buffer
491 buffer = Move<VkBuffer>(); // free the previous buffer, if any
501 continue; // didn't work, try with a smaller buffer
504 buffer = Move<VkBuffer>(check<VkBuffer>(rawBuffer), Deleter<VkBuffer>(vk, vkDevice, DE_NULL));
507 info.buffer = *buffer;
513 errorMsg << "Requied memory size (" << memReqs.memoryRequirements.size << " bytes) smaller than the buffer's size (" << size << " bytes)!";
528 *buffer // VkBuffer buffer
548 continue; // didn't work, try with a smaller allocation (and a smaller buffer)
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) + ")");
575 DE_FATAL("Unknown buffer usage flag");
728 // if buffer creation succeeds verify that the correct amount of memory was bound to it
768 de::MovePtr<tcu::TestCaseGroup> buffersTests (new tcu::TestCaseGroup(testCtx, "buffer"));
785 // Creating buffer using maxBufferSize limit.
793 // Creating sparse buffer using maxBufferSize limit.
801 // Creating a ULLONG_MAX buffer and verify that it either succeeds or returns one of the allowed errors.