Home
last modified time | relevance | path

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

12

/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()
DResourceHeapVk.h26 ResourceHeap(VkDeviceMemory memory, size_t memoryType);
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
DvktMemoryAllocationTests.cpp343 const VkMemoryType memoryType = m_memoryProperties.memoryTypes[m_memoryTypeIndex]; in iterate() local
344 const VkMemoryHeap memoryHeap = m_memoryProperties.memoryHeaps[memoryType.heapIndex]; in iterate()
372 if (memoryType.heapIndex >= m_memoryProperties.memoryHeapCount) in iterate()
376 log << TestLog::Message << "Memory type: " << memoryType << TestLog::EndMessage; in iterate()
385 if ((memoryType.propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) && in iterate()
422 …if (res == VK_ERROR_OUT_OF_DEVICE_MEMORY && memoryType.propertyFlags & vk::VK_MEMORY_PROPERTY_PROT… in iterate()
714 const MemoryType& memoryType = m_rng.choose<MemoryType>(heap.types.begin(), heap.types.end()); in iterate() local
716 const bool isProtected = memoryType.type.propertyFlags & VK_MEMORY_PROPERTY_PROTECTED_BIT; in iterate()
738 memoryType.type.propertyFlags in iterate()
749 memoryType.index // memoryTypeIndex; in iterate()
DvktMemoryMappingTests.cpp682 const vk::VkMemoryType& memoryType = memoryProperties.memoryTypes[memoryTypeIndex]; in testMemoryMapping() local
683 const VkMemoryHeap& memoryHeap = memoryProperties.memoryHeaps[memoryType.heapIndex]; in testMemoryMapping()
732 log << TestLog::Message << "MemoryType: " << memoryType << TestLog::EndMessage; in testMemoryMapping()
774 if ((memoryType.propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT) == 0) in testMemoryMapping()
/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()
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.cpp860 const deUint32 memoryType, in makeSparseImageMemoryBind() argument
870 memoryType, // deUint32 memoryTypeIndex; in makeSparseImageMemoryBind()
891 const deUint32 memoryType, in makeSparseMemoryBind() argument
900 memoryType, // deUint32 memoryTypeIndex; in makeSparseMemoryBind()
961 const deUint32 memoryType) in getHeapIndexForMemoryType() argument
964 DE_ASSERT(memoryType < deviceMemoryProperties.memoryTypeCount); in getHeapIndexForMemoryType()
965 return deviceMemoryProperties.memoryTypes[memoryType].heapIndex; in getHeapIndexForMemoryType()
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()
DvktSparseResourcesTestsUtil.hpp185 const deUint32 memoryType,
193 const deUint32 memoryType,
229 const deUint32 memoryType);
DvktSparseResourcesImageMemoryAliasing.cpp297 …const deUint32 memoryType = findMatchingMemoryType(instance, getPhysicalDevice(secondDeviceID), im… in iterate() local
299 if (memoryType == NO_MATCH_FOUND) in iterate()
305 … heapIndex = getHeapIndexForMemoryType(instance, getPhysicalDevice(secondDeviceID), memoryType); in iterate()
350 …imageMemoryRequirements.alignment * numSparseBlocks, memoryType, subresource, makeOffset3D(0u, 0u,… in iterate()
360 …aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset + layerNdx … in iterate()
367 …aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset + layerNdx … in iterate()
378 aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset); in iterate()
385 aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset); in iterate()
DvktSparseResourcesShaderIntrinsicsBase.cpp536 …const deUint32 memoryType = findMatchingMemoryType(instance, physicalDevice, imageMemoryR… in iterate() local
538 if (memoryType == NO_MATCH_FOUND) in iterate()
591 …imageMemoryRequirements.alignment * numSparseBlocks, memoryType, subresource, makeOffset3D(0u, 0u,… in iterate()
604 aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset); in iterate()
615 …aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset + layerNdx … in iterate()
639 metadataAspectRequirements.imageMipTailSize, memoryType, in iterate()
DvktSparseResourcesImageSparseBinding.cpp228 …const deUint32 memoryType = findMatchingMemoryType(instance, getPhysicalDevice(secondDeviceID… in iterate() local
230 if (memoryType == NO_MATCH_FOUND) in iterate()
236 … heapIndex = getHeapIndexForMemoryType(instance, getPhysicalDevice(secondDeviceID), memoryType); in iterate()
249 … imageMemoryRequirements.alignment, memoryType, imageMemoryRequirements.alignment * sparseBindNdx); in iterate()
DvktSparseResourcesImageSparseResidency.cpp395 …const deUint32 memoryType = findMatchingMemoryType(instance, getPhysicalDevice(secondDeviceI… in iterate() local
397 if (memoryType == NO_MATCH_FOUND) in iterate()
403 … heapIndex = getHeapIndexForMemoryType(instance, getPhysicalDevice(secondDeviceID), memoryType); in iterate()
464 imageMemoryRequirements.alignment, memoryType, subresource, offset, extent); in iterate()
476 …aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset + layerNdx … in iterate()
491 metadataAspectRequirements.imageMipTailSize, memoryType, in iterate()
505 aspectRequirements.imageMipTailSize, memoryType, aspectRequirements.imageMipTailOffset); in iterate()
521 …metadataAspectRequirements.imageMipTailSize, memoryType, metadataAspectRequirements.imageMipTailOf… in iterate()
DvktSparseResourcesBufferTests.cpp94 deUint32 memoryType; //!< memory type (same for all allocations) member
255 sparseAllocation->memoryType = memoryTypeNdx; in build()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktAtomicOperationTests.cpp76 AtomicShaderType (glu::ShaderType type, AtomicMemoryType memoryType) in AtomicShaderType() argument
78 , m_atomicMemoryType (memoryType) in AtomicShaderType()
81 DE_ASSERT(memoryType != AtomicMemoryType::SHARED || type == glu::SHADERTYPE_COMPUTE); in AtomicShaderType()
1282 const AtomicMemoryType memoryType = m_shaderType.getMemoryType(); in createShaderSpec() local
1310 if (memoryType != AtomicMemoryType::REFERENCE) in createShaderSpec()
1321 if (memoryType == AtomicMemoryType::SHARED) in createShaderSpec()
1349 if (memoryType == AtomicMemoryType::SHARED) in createShaderSpec()
1381 if (memoryType == AtomicMemoryType::SHARED) in createShaderSpec()
1424 if (memoryType == AtomicMemoryType::REFERENCE) in createShaderSpec()
1438 …specializations["RESULT_BUFFER_NAME"] = ((memoryType == AtomicMemoryType::SHARED) ? "result" : "bu… in createShaderSpec()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/api/
DvktApiBufferTests.cpp233 const VkMemoryType memoryType = memoryProperties.memoryTypes[heapTypeIndex]; in bufferCreateAndAllocTest() local
234 const VkMemoryHeap memoryHeap = memoryProperties.memoryHeaps[memoryType.heapIndex]; in bufferCreateAndAllocTest()
454 const VkMemoryType memoryType = memoryProperties.memoryTypes[heapTypeIndex]; in bufferCreateAndAllocTest() local
455 const VkMemoryHeap memoryHeap = memoryProperties.memoryHeaps[memoryType.heapIndex]; in bufferCreateAndAllocTest()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
Dvk_mem_alloc_wrapper.cpp121 *pMemoryTypeIndexOut = allocationInfo.memoryType; in CreateBuffer()
Dvk_utils.h364 VkDeviceSize getHeapSizeForMemoryType(uint32_t memoryType) const
366 uint32_t heapIndex = mMemoryProperties.memoryTypes[memoryType].heapIndex;
Dvk_utils.cpp412 const VkMemoryType &memoryType = mMemoryProperties.memoryTypes[typeIndex]; in hasLazilyAllocatedMemory() local
413 if ((memoryType.propertyFlags & VK_MEMORY_PROPERTY_LAZILY_ALLOCATED_BIT) != 0) in hasLazilyAllocatedMemory()
/third_party/flutter/skia/src/gpu/vk/
DGrVkAMDMemoryAllocator.cpp176 vmaGetMemoryTypeProperties(fAllocator, vmaInfo.memoryType, &memFlags); in getAllocInfo()
/third_party/skia/src/gpu/vk/
DGrVkAMDMemoryAllocator.cpp220 vmaGetMemoryTypeProperties(fAllocator, vmaInfo.memoryType, &memFlags); in getAllocInfo()
/third_party/skia/third_party/vulkanmemoryallocator/include/
Dvk_mem_alloc.h2080 uint32_t memoryType,
2087 uint32_t memoryType,
2456 VmaStatInfo memoryType[VK_MAX_MEMORY_TYPES]; member
3081 uint32_t memoryType; member
7826 void FreeVulkanMemory(uint32_t memoryType, VkDeviceSize size, VkDeviceMemory hMemory);
13741 VmaAddStatInfo(pStats->memoryType[memTypeIndex], allocationStatInfo); in AddStats()
16491 InitStatInfo(pStats->memoryType[i]); in CalculateStats()
16524 VmaAddStatInfo(pStats->memoryType[memTypeIndex], allocationStatInfo); in CalculateStats()
16532 VmaPostprocessCalcStatInfo(pStats->memoryType[i]); in CalculateStats()
16656 pAllocationInfo->memoryType = UINT32_MAX; in GetAllocationInfo()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/synchronization/
DvktSynchronizationCrossInstanceSharingTests.cpp1329 vk::VkExternalMemoryHandleTypeFlagBits memoryType; in createTests() member
1398 …e, (vk::VkSemaphoreType)semaphoreType, writeOp, readOp, cases[caseNdx].memoryType, cases[caseNdx].… in createTests()

12