Home | History | Annotate | Download | only in memory

Lines Matching defs:memory

79 namespace memory
586 vk::Move<vk::VkDeviceMemory> memory (vk::allocateMemory(vkd, device, &allocationInfo));
588 VK_CHECK(vkd.bindBufferMemory(device, buffer, *memory, 0));
590 return memory;
597 // Try next memory type/heap if out of memory
608 TCU_FAIL("Failed to allocate memory for buffer");
636 vk::Move<vk::VkDeviceMemory> memory (vk::allocateMemory(vkd, device, &allocationInfo));
638 VK_CHECK(vkd.bindImageMemory(device, image, *memory, 0));
640 return memory;
647 // Try next memory type/heap if out of memory
658 TCU_FAIL("Failed to allocate memory for image");
687 vk::VkDeviceMemory memory,
692 VK_CHECK(vkd.mapMemory(device, memory, 0, size, 0, &ptr));
767 class Memory
770 Memory (const vk::InstanceInterface& vki,
967 Memory::Memory (const vk::InstanceInterface& vki,
1039 const Memory& memory)
1041 , m_memory (memory)
1045 const Memory& getMemory (void) const { return m_memory; }
1117 const Memory& m_memory;
1190 // that buffer or memory has been already allocated. This should build all
1194 // Execute command. Write or read mapped memory, submit commands to queue
1221 log << TestLog::Message << commandIndex << ":" << getName() << " Map memory" << TestLog::EndMessage;
1252 log << TestLog::Message << commandIndex << ": Unmap memory" << TestLog::EndMessage;
1282 log << TestLog::Message << commandIndex << ": Invalidate mapped memory" << TestLog::EndMessage;
1313 log << TestLog::Message << commandIndex << ": Flush mapped memory" << TestLog::EndMessage;
1335 // Host memory reads and writes
1366 log << TestLog::Message << commandIndex << ": Host memory access:" << (m_read ? " read" : "") << (m_write ? " write" : "") << ", seed: " << m_seed << TestLog::EndMessage;
1412 DE_FATAL("Host memory access without read or write.");
1480 DE_FATAL("Host memory access without read or write.");
1572 log << TestLog::Message << commandIndex << ":" << getName() << " Bind memory to buffer" << TestLog::EndMessage;
1710 log << TestLog::Message << commandIndex << ":" << getName() << " Bind memory to image" << TestLog::EndMessage;
1779 const Memory& getMemory (void) const { return m_context.getMemory(); }
2617 const vk::Unique<vk::VkDeviceMemory> memory (bindBufferMemory(vki, vkd, physicalDevice, device, *dstBuffer, vk::VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT));
2684 void* const ptr = mapMemory(vkd, device, *memory, 4 * m_imageWidth * m_imageHeight);
2686 vk::invalidateMappedMemoryRange(vkd, device, *memory, 0, 4 * m_imageWidth * m_imageHeight);
2711 vkd.unmapMemory(device, *memory);
2788 const vk::Unique<vk::VkDeviceMemory> memory (bindBufferMemory(vki, vkd, physicalDevice, device, *srcBuffer, vk::VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT));
2855 void* const ptr = mapMemory(vkd, device, *memory, 4 * m_imageWidth * m_imageHeight);
2865 vk::flushMappedMemoryRange(vkd, device, *memory, 0, 4 * m_imageWidth * m_imageHeight);
2866 vkd.unmapMemory(device, *memory);
3223 const vk::Unique<vk::VkDeviceMemory> memory (bindBufferMemory(vki, vkd, physicalDevice, device, *srcBuffer, vk::VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT));
3290 void* const ptr = mapMemory(vkd, device, *memory, 4 * m_imageWidth * m_imageHeight);
3300 vk::flushMappedMemoryRange(vkd, device, *memory, 0, 4 * m_imageWidth * m_imageHeight);
3301 vkd.unmapMemory(device, *memory);
3525 const vk::Unique<vk::VkDeviceMemory> memory (bindBufferMemory(vki, vkd, physicalDevice, device, *dstBuffer, vk::VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT));
3591 void* const ptr = mapMemory(vkd, device, *memory, 4 * m_imageWidth * m_imageHeight);
3593 vk::invalidateMappedMemoryRange(vkd, device, *memory, 0, 4 * m_imageWidth * m_imageHeight);
3604 vkd.unmapMemory(device, *memory);
3705 const vk::Unique<vk::VkDeviceMemory> memory (bindBufferMemory(vki, vkd, physicalDevice, device, *srcBuffer, vk::VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT));
3772 void* const ptr = mapMemory(vkd, device, *memory, 4 * m_srcImageWidth * m_srcImageHeight);
3782 vk::flushMappedMemoryRange(vkd, device, *memory, 0, 4 * m_srcImageWidth * m_srcImageHeight);
3783 vkd.unmapMemory(device, *memory);
4069 const vk::Unique<vk::VkDeviceMemory> memory (bindBufferMemory(vki, vkd, physicalDevice, device, *dstBuffer, vk::VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT));
4135 void* const ptr = mapMemory(vkd, device, *memory, 4 * m_dstImageWidth * m_dstImageHeight);
4137 vk::invalidateMappedMemoryRange(vkd, device, *memory, 0, 4 * m_dstImageWidth * m_dstImageHeight);
4170 vkd.unmapMemory(device, *memory);
4190 const Memory& getMemory (void) const { return m_context.getMemory(); }
4530 const vk::Unique<vk::VkDeviceMemory> memory (bindBufferMemory(vki, vkd, physicalDevice, device, *dstBuffer, vk::VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT));
4596 void* const ptr = mapMemory(vkd, device, *memory, 4 * m_targetWidth * m_targetHeight);
4598 vk::invalidateMappedMemoryRange(vkd, device, *memory, 0, 4 * m_targetWidth * m_targetHeight);
4609 vkd.unmapMemory(device, *memory);
7501 // Memory operation in srcStage have not completed before dstStage
7553 // Memory operations from other stages have not completed before
7760 // All memory operations are invisible unless they are listed in dstAccess
8055 // Host memory operations
8143 && (usageToStageFlags(usage) & (~vk::VK_PIPELINE_STAGE_HOST_BIT)) != 0) // Don't start command buffer if there are no ways to use memory from gpu
8414 void applyOp (State& state, const Memory& memory, Op op, Usage usage)
8450 if ((memory.getMemoryType().propertyFlags & vk::VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == 0)
8463 if ((memory.getMemoryType().propertyFlags & vk::VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == 0)
8609 if ((memory.getMemoryType().propertyFlags & vk::VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == 0)
8635 if ((memory.getMemoryType().propertyFlags & vk::VK_MEMORY_PROPERTY_HOST_COHERENT_BIT) == 0)
8993 de::MovePtr<CmdCommand> createRenderPassCommands (const Memory& memory,
9008 getAvailableOps(state, memory.getSupportBuffers(), memory.getSupportImages(), usage, ops);
9024 applyOp(state, memory, op, usage);
9031 applyOp(state, memory, OP_RENDERPASS_END, usage);
9043 de::MovePtr<Command> createCmdCommands (const Memory& memory,
9058 getAvailableOps(state, memory.getSupportBuffers(), memory.getSupportImages(), usage, ops);
9074 applyOp(state, memory, op, usage);
9075 commands.push_back(createRenderPassCommands(memory, nextOpRng, state, usage, opNdx, opCount).release());
9082 applyOp(state, memory, op, usage);
9091 applyOp(state, memory, OP_COMMAND_BUFFER_END, usage);
9105 const Memory& memory,
9120 getAvailableOps(state, memory.getSupportBuffers(), memory.getSupportImages(), usage, ops);
9129 applyOp(state, memory, op, usage);
9130 commands.push_back(createCmdCommands(memory, nextOpRng, state, usage, opNdx, opCount).release());
9137 applyOp(state, memory, op, usage);
9181 MovePtr<Memory> m_memory;
9272 const tcu::ScopedLogSection section (log, "MemoryProperties", "Memory Properties");
9284 const tcu::ScopedLogSection memoryTypeSection (log, "MemoryType" + de::toString(memoryTypeNdx), "Memory type " + de::toString(memoryTypeNdx));
9320 "Memory type " + de::toString(m_memoryTypeNdx) + " create commands iteration " + de::toString(m_iteration));
9328 log << TestLog::Message << "Memory type not supported" << TestLog::EndMessage;
9353 log << TestLog::Message << "Skipping memory type. None of the usages are supported." << TestLog::EndMessage;
9361 m_memory = MovePtr<Memory>(new Memory(vki, vkd, physicalDevice, device, m_config.size, m_memoryTypeNdx, maxBufferSize, maxImageSize[0], maxImageSize[1]));
9382 "Memory type " + de::toString(m_memoryTypeNdx) + " prepare iteration" + de::toString(m_iteration));
9411 "Memory type " + de::toString(m_memoryTypeNdx) + " execute iteration " + de::toString(m_iteration));
9445 "Memory type " + de::toString(m_memoryTypeNdx) + " verify iteration " + de::toString(m_iteration));
10046 } // memory