Home
last modified time | relevance | path

Searched refs:memoryType (Results 1 – 25 of 61) sorted by relevance

123

/third_party/skia/third_party/externals/dawn/src/dawn_native/vulkan/
DResourceMemoryAllocatorVk.cpp129 int memoryType = FindBestTypeIndex(requirements, kind); in Allocate() local
130 ASSERT(memoryType >= 0); in Allocate()
154 DAWN_TRY_ASSIGN(subAllocation, mAllocatorsPerType[memoryType]->AllocateMemory( in Allocate()
163 DAWN_TRY_ASSIGN(resourceHeap, mAllocatorsPerType[memoryType]->AllocateResourceHeap(size)); in Allocate()
173 mAllocatorsPerType[memoryType]->DeallocateResourceHeap(std::move(resourceHeap)); in Allocate()
222 size_t memoryType = ToBackend(allocation.GetResourceHeap())->GetMemoryType(); in Tick() local
224 mAllocatorsPerType[memoryType]->DeallocateMemory(allocation); in Tick()
DResourceHeapVk.cpp19 ResourceHeap::ResourceHeap(VkDeviceMemory memory, size_t memoryType) in ResourceHeap() argument
20 : mMemory(memory), mMemoryType(memoryType) { in ResourceHeap()
/third_party/vk-gl-cts/external/vulkan-docs/src/appendices/
DVK_NV_win32_keyed_mutex.adoc52 uint32_t memoryType;
113 for (memoryType = 0; memoryType < numMemoryTypes; memoryType++) {
114 if ((1 << memoryType) & imageMemoryRequirements.memoryTypeBits) {
121 assert(memoryType < numMemoryTypes);
134 memoryAllocateInfo.memoryTypeIndex = memoryType;
DVK_NV_win32_keyed_mutex.txt53 uint32_t memoryType;
114 for (memoryType = 0; memoryType < numMemoryTypes; memoryType++) {
115 if ((1 << memoryType) & imageMemoryRequirements.memoryTypeBits) {
122 assert(memoryType < numMemoryTypes);
135 memoryAllocateInfo.memoryTypeIndex = memoryType;
DVK_NV_external_memory_rdma.adoc33 for (uint32_t memoryType = 0; memoryType < memoryProperties2.memoryProperties.memoryTypeCount; memo…
34 …if (memoryProperties2.memoryProperties.memoryTypes[memoryType].propertyFlags & VK_MEMORY_PROPERTY_…
35 heapIndex = memoryProperties2.memoryProperties.memoryTypes[memoryType].heapIndex;
DVK_NV_external_memory_rdma.txt35 for (uint32_t memoryType = 0; memoryType < memoryProperties2.memoryProperties.memoryTypeCount; memo…
36 …if (memoryProperties2.memoryProperties.memoryTypes[memoryType].propertyFlags & VK_MEMORY_PROPERTY_…
37 heapIndex = memoryProperties2.memoryProperties.memoryTypes[memoryType].heapIndex;
DVK_NV_external_memory_win32.adoc100 uint32_t memoryType;
172 for (memoryType = 0; memoryType < numMemoryTypes; memoryType++) {
173 if ((1 << memoryType) & imageMemoryRequirements.memoryTypeBits) {
180 assert(memoryType < numMemoryTypes);
199 memoryAllocateInfo.memoryTypeIndex = memoryType;
DVK_NV_external_memory_win32.txt99 uint32_t memoryType;
171 for (memoryType = 0; memoryType < numMemoryTypes; memoryType++) {
172 if ((1 << memoryType) & imageMemoryRequirements.memoryTypeBits) {
179 assert(memoryType < numMemoryTypes);
198 memoryAllocateInfo.memoryTypeIndex = memoryType;
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/conditional_rendering/
DvktConditionalRenderingTestUtil.cpp64 …const auto hostUsage = ((data.memoryType == HOST) ? vk::VK_BUFFER_USAGE_CONDITIONAL_RENDERING_… in createConditionalRenderingBuffer()
78 if (data.memoryType == HOST) in createConditionalRenderingBuffer()
117 str << (c.memoryType ? "_host_memory" : "_local_memory"); in operator <<()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/conditional_rendering/
DvktConditionalRenderingTestUtil.cpp64 …const auto hostUsage = ((data.memoryType == HOST) ? vk::VK_BUFFER_USAGE_CONDITIONAL_RENDERING_… in createConditionalRenderingBuffer()
78 if (data.memoryType == HOST) in createConditionalRenderingBuffer()
117 str << (c.memoryType ? "_host_memory" : "_local_memory"); in operator <<()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesMipmapSparseResidency.cpp236 …const deUint32 memoryType = findMatchingMemoryType(instance, getPhysicalDevice(secondDeviceI… in iterate() local
238 if (memoryType == NO_MATCH_FOUND) in iterate()
244 … heapIndex = getHeapIndexForMemoryType(instance, getPhysicalDevice(secondDeviceID), memoryType); in iterate()
288 …imageMemoryRequirements.alignment * numSparseBlocks, memoryType, subresource, makeOffset3D(0u, 0u,… in iterate()
298 …aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset + layerNdx … in iterate()
313 metadataAspectRequirements.imageMipTailSize, memoryType, in iterate()
327 aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset); in iterate()
343 …metadataAspectRequirements.imageMipTailSize, memoryType, metadataAspectRequirements.imageMipTailOf… in iterate()
DvktSparseResourcesBufferSparseBinding.cpp176 …const deUint32 memoryType = findMatchingMemoryType(instance, getPhysicalDevice(secondDevice… in iterate() local
178 if (memoryType == NO_MATCH_FOUND) in iterate()
184 … heapIndex = getHeapIndexForMemoryType(instance, getPhysicalDevice(secondDeviceID), memoryType); in iterate()
200 memoryType, // uint32_t memoryTypeIndex; in iterate()
DvktSparseResourcesTestsUtil.cpp831 const deUint32 memoryType, in makeSparseImageMemoryBind() argument
841 memoryType, // deUint32 memoryTypeIndex; in makeSparseImageMemoryBind()
862 const deUint32 memoryType, in makeSparseMemoryBind() argument
871 memoryType, // deUint32 memoryTypeIndex; in makeSparseMemoryBind()
932 const deUint32 memoryType) in getHeapIndexForMemoryType() argument
935 DE_ASSERT(memoryType < deviceMemoryProperties.memoryTypeCount); in getHeapIndexForMemoryType()
936 return deviceMemoryProperties.memoryTypes[memoryType].heapIndex; in getHeapIndexForMemoryType()
DvktSparseResourcesBufferSparseResidency.cpp217 …const deUint32 memoryType = findMatchingMemoryType(instance, getPhysicalDevice(secondDeviceI… in iterate() local
219 if (memoryType == NO_MATCH_FOUND) in iterate()
225 … heapIndex = getHeapIndexForMemoryType(instance, getPhysicalDevice(secondDeviceID), memoryType); in iterate()
237 …oryBind(deviceInterface, getDevice(), bufferMemRequirements.alignment, memoryType, bufferMemRequir… in iterate()
DvktSparseResourcesTestsUtil.hpp185 const deUint32 memoryType,
193 const deUint32 memoryType,
229 const deUint32 memoryType);
DvktSparseResourcesBufferMemoryAliasing.cpp231 …const deUint32 memoryType = findMatchingMemoryType(instance, getPhysicalDevice(secondDeviceID), bu… in iterate() local
233 if (memoryType == NO_MATCH_FOUND) in iterate()
239 … heapIndex = getHeapIndexForMemoryType(instance, getPhysicalDevice(secondDeviceID), memoryType); in iterate()
249 …d = makeSparseMemoryBind(deviceInterface, getDevice(), bufferMemRequirements.size, memoryType, 0u); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/
DvktSparseResourcesMipmapSparseResidency.cpp236 …const deUint32 memoryType = findMatchingMemoryType(instance, getPhysicalDevice(secondDeviceI… in iterate() local
238 if (memoryType == NO_MATCH_FOUND) in iterate()
244 … heapIndex = getHeapIndexForMemoryType(instance, getPhysicalDevice(secondDeviceID), memoryType); in iterate()
288 …imageMemoryRequirements.alignment * numSparseBlocks, memoryType, subresource, makeOffset3D(0u, 0u,… in iterate()
298 …aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset + layerNdx … in iterate()
313 metadataAspectRequirements.imageMipTailSize, memoryType, in iterate()
327 aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset); in iterate()
343 …metadataAspectRequirements.imageMipTailSize, memoryType, metadataAspectRequirements.imageMipTailOf… in iterate()
DvktSparseResourcesBufferSparseBinding.cpp176 …const deUint32 memoryType = findMatchingMemoryType(instance, getPhysicalDevice(secondDevice… in iterate() local
178 if (memoryType == NO_MATCH_FOUND) in iterate()
184 … heapIndex = getHeapIndexForMemoryType(instance, getPhysicalDevice(secondDeviceID), memoryType); in iterate()
200 memoryType, // uint32_t memoryTypeIndex; in iterate()
DvktSparseResourcesTestsUtil.cpp831 const deUint32 memoryType, in makeSparseImageMemoryBind() argument
841 memoryType, // deUint32 memoryTypeIndex; in makeSparseImageMemoryBind()
862 const deUint32 memoryType, in makeSparseMemoryBind() argument
871 memoryType, // deUint32 memoryTypeIndex; in makeSparseMemoryBind()
932 const deUint32 memoryType) in getHeapIndexForMemoryType() argument
935 DE_ASSERT(memoryType < deviceMemoryProperties.memoryTypeCount); in getHeapIndexForMemoryType()
936 return deviceMemoryProperties.memoryTypes[memoryType].heapIndex; in getHeapIndexForMemoryType()
DvktSparseResourcesBufferSparseResidency.cpp217 …const deUint32 memoryType = findMatchingMemoryType(instance, getPhysicalDevice(secondDeviceI… in iterate() local
219 if (memoryType == NO_MATCH_FOUND) in iterate()
225 … heapIndex = getHeapIndexForMemoryType(instance, getPhysicalDevice(secondDeviceID), memoryType); in iterate()
237 …oryBind(deviceInterface, getDevice(), bufferMemRequirements.alignment, memoryType, bufferMemRequir… in iterate()
DvktSparseResourcesTestsUtil.hpp185 const deUint32 memoryType,
193 const deUint32 memoryType,
229 const deUint32 memoryType);
DvktSparseResourcesBufferMemoryAliasing.cpp231 …const deUint32 memoryType = findMatchingMemoryType(instance, getPhysicalDevice(secondDeviceID), bu… in iterate() local
233 if (memoryType == NO_MATCH_FOUND) in iterate()
239 … heapIndex = getHeapIndexForMemoryType(instance, getPhysicalDevice(secondDeviceID), memoryType); in iterate()
249 …d = makeSparseMemoryBind(deviceInterface, getDevice(), bufferMemRequirements.size, memoryType, 0u); in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory/
DvktMemoryAllocationTests.cpp419 const VkMemoryType memoryType = m_memoryProperties.memoryTypes[m_memoryTypeIndex]; in iterate() local
420 const VkMemoryHeap memoryHeap = m_memoryProperties.memoryHeaps[memoryType.heapIndex]; in iterate()
448 if (memoryType.heapIndex >= m_memoryProperties.memoryHeapCount) in iterate()
452 log << TestLog::Message << "Memory type: " << memoryType << TestLog::EndMessage; in iterate()
461 if ((memoryType.propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) && in iterate()
498 …if (res == VK_ERROR_OUT_OF_DEVICE_MEMORY && memoryType.propertyFlags & vk::VK_MEMORY_PROPERTY_PROT… in iterate()
810 const MemoryType& memoryType = m_rng.choose<MemoryType>(heap.types.begin(), heap.types.end()); in iterate() local
812 const bool isProtected = memoryType.type.propertyFlags & VK_MEMORY_PROPERTY_PROTECTED_BIT; in iterate()
834 memoryType.type.propertyFlags in iterate()
845 memoryType.index // memoryTypeIndex; in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
DvktMemoryAllocationTests.cpp419 const VkMemoryType memoryType = m_memoryProperties.memoryTypes[m_memoryTypeIndex]; in iterate() local
420 const VkMemoryHeap memoryHeap = m_memoryProperties.memoryHeaps[memoryType.heapIndex]; in iterate()
448 if (memoryType.heapIndex >= m_memoryProperties.memoryHeapCount) in iterate()
452 log << TestLog::Message << "Memory type: " << memoryType << TestLog::EndMessage; in iterate()
461 if ((memoryType.propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) && in iterate()
498 …if (res == VK_ERROR_OUT_OF_DEVICE_MEMORY && memoryType.propertyFlags & vk::VK_MEMORY_PROPERTY_PROT… in iterate()
810 const MemoryType& memoryType = m_rng.choose<MemoryType>(heap.types.begin(), heap.types.end()); in iterate() local
812 const bool isProtected = memoryType.type.propertyFlags & VK_MEMORY_PROPERTY_PROTECTED_BIT; in iterate()
834 memoryType.type.propertyFlags in iterate()
845 memoryType.index // memoryTypeIndex; in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/
DvktAtomicOperationTests.cpp77 AtomicShaderType (glu::ShaderType type, AtomicMemoryType memoryType) in AtomicShaderType() argument
79 , m_atomicMemoryType (memoryType) in AtomicShaderType()
82 DE_ASSERT(memoryType != AtomicMemoryType::SHARED in AtomicShaderType()
88 DE_ASSERT(memoryType != AtomicMemoryType::PAYLOAD || type == glu::SHADERTYPE_TASK); in AtomicShaderType()
1283 const AtomicMemoryType memoryType = m_shaderType.getMemoryType(); in createShaderSpec() local
1312 if (memoryType != AtomicMemoryType::REFERENCE) in createShaderSpec()
1323 if (memoryType == AtomicMemoryType::SHARED) in createShaderSpec()
1330 else if (memoryType == AtomicMemoryType::PAYLOAD) in createShaderSpec()
1433 if (memoryType == AtomicMemoryType::REFERENCE) in createShaderSpec()

123