Home | History | Annotate | Download | only in memory

Lines Matching defs:memory

21  * \brief Simple memory mapping tests.
65 namespace memory
98 // memory is used.
285 // 1 B allocation from memory type 0
293 const Unique<VkDeviceMemory> memory (allocateMemory(vk, device, &allocInfo));
564 log << TestLog::Message << "Remapping memory between flush and invalidation." << TestLog::EndMessage;
628 log << TestLog::Message << "Memory type does not support " << allocationKindName[static_cast<deUint32>(config.allocationKind)] << '.' << TestLog::EndMessage;
658 log << TestLog::Message << "Memory type doesn't support mapping." << TestLog::EndMessage;
662 log << TestLog::Message << "Memory type's heap is too small." << TestLog::EndMessage;
667 const Unique<VkDeviceMemory> memory (allocMemory(vkd, device, allocationSize, memoryTypeIndex, image, buffer));
674 VK_CHECK(vkd.mapMemory(device, *memory, mappingOffset, mappingSize, 0u, &ptr));
699 *memory,
713 vkd.unmapMemory(device, *memory);
714 VK_CHECK(vkd.mapMemory(device, *memory, mappingOffset, mappingSize, 0u, &ptr));
731 *memory,
743 result.fail("Unexpected values read from mapped memory.");
745 vkd.unmapMemory(device, *memory);
755 result.addResult(QP_TEST_RESULT_NOT_SUPPORTED, "No suitable memory kind found to perform test.");
851 void randomRanges (de::Random& rng, vector<VkMappedMemoryRange>& ranges, size_t count, VkDeviceMemory memory, VkDeviceSize minOffset, VkDeviceSize maxSize, VkDeviceSize atomSize)
865 memory,
989 MAX_MEMORY_USAGE_DIV = 2, // Use only 1/2 of each memory heap.
1015 // \todo [2016-04-20 pyry] Consider estimating memory fragmentation
1134 // Heap is full if there is not enough memory to allocate minimal memory object.
1143 // Memory required for reference. One byte and one bit for each byte and one bit per each m_atomSize.
1180 // Pick random memory type
1188 // Collect memory types that can be allocated and the maximum size of allocation.
1189 // Memory type can be only allocated if minimal memory allocation is less than available memory.
1204 // Max memory size calculation is little tricky since reference memory requires 1/n bits per byte.
1234 // Max memory size calculation is little tricky since reference memory requires 1/n bits per byte.
1371 // Perform operations on mapped memory
1413 // Unmap memory object
1429 // Map memory object
1447 // For the duration of sorting reserve MemoryObject space from system memory
1465 // Not possible to even allocate MemoryObject from system memory, look for non-empty heaps
1480 // Allocate more memory objects
1488 // Free memory objects
1650 de::MovePtr<tcu::TestCaseGroup> group (new tcu::TestCaseGroup(testCtx, "mapping", "Memory mapping tests."));
1651 de::MovePtr<tcu::TestCaseGroup> dedicated (new tcu::TestCaseGroup(testCtx, "dedicated_alloc", "Dedicated memory mapping tests."));
1654 de::MovePtr<tcu::TestCaseGroup> (new tcu::TestCaseGroup(testCtx, "suballocation", "Suballocated memory mapping tests.")),
1655 de::MovePtr<tcu::TestCaseGroup> (new tcu::TestCaseGroup(testCtx, "buffer", "Buffer dedicated memory mapping tests.")),
1656 de::MovePtr<tcu::TestCaseGroup> (new tcu::TestCaseGroup(testCtx, "image", "Image dedicated memory mapping tests."))
1696 de::MovePtr<tcu::TestCaseGroup> fullGroup (new tcu::TestCaseGroup(testCtx, "full", "Map memory completely."));
1722 de::MovePtr<tcu::TestCaseGroup> subGroup (new tcu::TestCaseGroup(testCtx, "sub", "Map part of the memory."));
1774 de::MovePtr<tcu::TestCaseGroup> randomGroup (new tcu::TestCaseGroup(testCtx, "random", "Random memory mapping tests."));
1796 } // memory