Home
last modified time | relevance | path

Searched refs:memoryTypeNdx (Results 1 – 22 of 22) sorted by relevance

/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/
DvkMemUtil.cpp76 …sHostVisibleMemory (const VkPhysicalDeviceMemoryProperties& deviceMemProps, deUint32 memoryTypeNdx) in isHostVisibleMemory() argument
78 DE_ASSERT(memoryTypeNdx < deviceMemProps.memoryTypeCount); in isHostVisibleMemory()
79 …return (deviceMemProps.memoryTypes[memoryTypeNdx].propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_… in isHostVisibleMemory()
215 …const deUint32 memoryTypeNdx = selectMatchingMemoryType(m_memProps, memReqs.memoryTypeBits, req… in allocate() local
224 memoryTypeNdx, // deUint32 memoryTypeIndex; in allocate()
265 …const deUint32 memoryTypeNdx = selectMatchingMemoryType(memoryProperties, memReqs.memoryTyp… in allocateExtended() local
271 memoryTypeNdx, // deUint32 memoryTypeIndex in allocateExtended()
381 for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < deviceMemProps.memoryTypeCount; memoryTypeNdx++) in getCompatibleMemoryTypes() local
383 if (requirement.matchesHeap(deviceMemProps.memoryTypes[memoryTypeNdx].propertyFlags)) in getCompatibleMemoryTypes()
384 compatibleTypes |= (1u << memoryTypeNdx); in getCompatibleMemoryTypes()
[all …]
DvkImageUtil.cpp5281 …for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < deviceMemoryProperties.memoryTypeCount; ++memoryT… in allocateAndBindSparseImage() local
5283 if ((memoryRequirements.memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in allocateAndBindSparseImage()
5284 …MemoryRequirement::Any.matchesHeap(deviceMemoryProperties.memoryTypes[memoryTypeNdx].propertyFlags… in allocateAndBindSparseImage()
5286 memoryType = memoryTypeNdx; in allocateAndBindSparseImage()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/device_group/
DvktDeviceGroupRendering.cpp205 for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < deviceMemProps.memoryTypeCount; memoryTypeNdx++) in getMemoryIndex() local
207 if ((memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in getMemoryIndex()
208 …(deviceMemProps.memoryTypes[memoryTypeNdx].propertyFlags & memoryPropertyFlag) == memoryPropertyFl… in getMemoryIndex()
209 return memoryTypeNdx; in getMemoryIndex()
449 deUint32 memoryTypeNdx = 0; in iterate() local
549 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate()
553 allocInfo.memoryTypeIndex = memoryTypeNdx; in iterate()
556 if (m_usePeerFetch && !isPeerFetchAllowed(memoryTypeNdx, firstDeviceID, secondDeviceID)) in iterate()
621 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate()
625 allocInfo.memoryTypeIndex = memoryTypeNdx; in iterate()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/device_group/
DvktDeviceGroupRendering.cpp205 for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < deviceMemProps.memoryTypeCount; memoryTypeNdx++) in getMemoryIndex() local
207 if ((memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in getMemoryIndex()
208 …(deviceMemProps.memoryTypes[memoryTypeNdx].propertyFlags & memoryPropertyFlag) == memoryPropertyFl… in getMemoryIndex()
209 return memoryTypeNdx; in getMemoryIndex()
449 deUint32 memoryTypeNdx = 0; in iterate() local
549 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate()
553 allocInfo.memoryTypeIndex = memoryTypeNdx; in iterate()
556 if (m_usePeerFetch && !isPeerFetchAllowed(memoryTypeNdx, firstDeviceID, secondDeviceID)) in iterate()
621 memoryTypeNdx = getMemoryIndex(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); in iterate()
625 allocInfo.memoryTypeIndex = memoryTypeNdx; in iterate()
[all …]
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/memory/
DvktMemoryRequirementsTests.cpp471 …for (IndexIterator memoryTypeNdx = usedMemoryTypeIndices.begin(); memoryTypeNdx != usedMemoryTypeI… in verifyMemoryRequirements() local
473 if (*memoryTypeNdx >= deviceMemoryProperties.memoryTypeCount) in verifyMemoryRequirements()
479 …opertyFlags memoryPropertyFlags = deviceMemoryProperties.memoryTypes[*memoryTypeNdx].propertyFlags; in verifyMemoryRequirements()
971 …for (IndexIterator memoryTypeNdx = usedMemoryTypeIndices.begin(); memoryTypeNdx != usedMemoryTypeI… in verifyMemoryRequirements() local
973 if (*memoryTypeNdx >= deviceMemoryProperties.memoryTypeCount) in verifyMemoryRequirements()
979 …opertyFlags memoryPropertyFlags = deviceMemoryProperties.memoryTypes[*memoryTypeNdx].propertyFlags; in verifyMemoryRequirements()
2029 …for (IndexIterator memoryTypeNdx = usedMemoryTypeIndices.begin(); memoryTypeNdx != usedMemoryTypeI… in testMultiplaneImages() local
2031 …if (result.check(*memoryTypeNdx < memoryProperties.memoryTypeCount, "Unknown memory type bits set … in testMultiplaneImages()
2033 …const VkMemoryPropertyFlags propertyFlags (memoryProperties.memoryTypes[*memoryTypeNdx].propertyFl… in testMultiplaneImages()
DvktMemoryMappingTests.cpp1313 for (size_t memoryTypeNdx = 0; memoryTypeNdx < m_memoryTypes.size(); memoryTypeNdx++) in allocateRandom() local
1315 const MemoryType type = m_memoryTypes[memoryTypeNdx]; in allocateRandom()
1446 …for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < memoryProperties.memoryTypeCount; memoryTypeNdx++) in RandomMemoryMappingInstance() local
1448 …if (memoryProperties.memoryTypes[memoryTypeNdx].propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BI… in RandomMemoryMappingInstance()
1449 …yProperties.memoryTypes[memoryTypeNdx].heapIndex].push_back(MemoryType(memoryTypeNdx, memoryProper… in RandomMemoryMappingInstance()
DvktMemoryAllocationTests.cpp695 …for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < m_memoryProperties.memoryTypeCount; memoryTypeNdx in iterate() local
699 memoryTypeNdx, in iterate()
700 m_memoryProperties.memoryTypes[memoryTypeNdx] in iterate()
DvktMemoryPipelineBarrierTests.cpp9427 …for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < m_memoryProperties.memoryTypeCount; memoryTypeNdx in MemoryTestInstance() local
9429 …yTypeSection (log, "MemoryType" + de::toString(memoryTypeNdx), "Memory type " + de::toString(memor… in MemoryTestInstance()
9431 …log << TestLog::Message << "Properties: " << m_memoryProperties.memoryTypes[memoryTypeNdx].propert… in MemoryTestInstance()
9432 …log << TestLog::Message << "Heap: " << m_memoryProperties.memoryTypes[memoryTypeNdx].heapIndex << … in MemoryTestInstance()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/memory/
DvktMemoryRequirementsTests.cpp471 …for (IndexIterator memoryTypeNdx = usedMemoryTypeIndices.begin(); memoryTypeNdx != usedMemoryTypeI… in verifyMemoryRequirements() local
473 if (*memoryTypeNdx >= deviceMemoryProperties.memoryTypeCount) in verifyMemoryRequirements()
479 …opertyFlags memoryPropertyFlags = deviceMemoryProperties.memoryTypes[*memoryTypeNdx].propertyFlags; in verifyMemoryRequirements()
971 …for (IndexIterator memoryTypeNdx = usedMemoryTypeIndices.begin(); memoryTypeNdx != usedMemoryTypeI… in verifyMemoryRequirements() local
973 if (*memoryTypeNdx >= deviceMemoryProperties.memoryTypeCount) in verifyMemoryRequirements()
979 …opertyFlags memoryPropertyFlags = deviceMemoryProperties.memoryTypes[*memoryTypeNdx].propertyFlags; in verifyMemoryRequirements()
2029 …for (IndexIterator memoryTypeNdx = usedMemoryTypeIndices.begin(); memoryTypeNdx != usedMemoryTypeI… in testMultiplaneImages() local
2031 …if (result.check(*memoryTypeNdx < memoryProperties.memoryTypeCount, "Unknown memory type bits set … in testMultiplaneImages()
2033 …const VkMemoryPropertyFlags propertyFlags (memoryProperties.memoryTypes[*memoryTypeNdx].propertyFl… in testMultiplaneImages()
DvktMemoryMappingTests.cpp1313 for (size_t memoryTypeNdx = 0; memoryTypeNdx < m_memoryTypes.size(); memoryTypeNdx++) in allocateRandom() local
1315 const MemoryType type = m_memoryTypes[memoryTypeNdx]; in allocateRandom()
1446 …for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < memoryProperties.memoryTypeCount; memoryTypeNdx++) in RandomMemoryMappingInstance() local
1448 …if (memoryProperties.memoryTypes[memoryTypeNdx].propertyFlags & VK_MEMORY_PROPERTY_HOST_VISIBLE_BI… in RandomMemoryMappingInstance()
1449 …yProperties.memoryTypes[memoryTypeNdx].heapIndex].push_back(MemoryType(memoryTypeNdx, memoryProper… in RandomMemoryMappingInstance()
DvktMemoryAllocationTests.cpp695 …for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < m_memoryProperties.memoryTypeCount; memoryTypeNdx in iterate() local
699 memoryTypeNdx, in iterate()
700 m_memoryProperties.memoryTypes[memoryTypeNdx] in iterate()
DvktMemoryPipelineBarrierTests.cpp9427 …for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < m_memoryProperties.memoryTypeCount; memoryTypeNdx in MemoryTestInstance() local
9429 …yTypeSection (log, "MemoryType" + de::toString(memoryTypeNdx), "Memory type " + de::toString(memor… in MemoryTestInstance()
9431 …log << TestLog::Message << "Properties: " << m_memoryProperties.memoryTypes[memoryTypeNdx].propert… in MemoryTestInstance()
9432 …log << TestLog::Message << "Heap: " << m_memoryProperties.memoryTypes[memoryTypeNdx].heapIndex << … in MemoryTestInstance()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/
DvktSparseResourcesTestsUtil.cpp918 …for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < deviceMemoryProperties.memoryTypeCount; ++memoryT… in findMatchingMemoryType() local
920 if ((objectMemoryRequirements.memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in findMatchingMemoryType()
921 memoryRequirement.matchesHeap(deviceMemoryProperties.memoryTypes[memoryTypeNdx].propertyFlags)) in findMatchingMemoryType()
923 return memoryTypeNdx; in findMatchingMemoryType()
DvktSparseResourcesBufferTests.cpp223 …const deUint32 memoryTypeNdx = findMatchingMemoryType(instanceInterface, physicalDevice, mem… in build() local
229 memoryTypeNdx, // deUint32 memoryTypeIndex; in build()
255 sparseAllocation->memoryType = memoryTypeNdx; in build()
256 …ocation->heapIndex = getHeapIndexForMemoryType(instanceInterface, physicalDevice, memoryTypeNdx); in build()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesTestsUtil.cpp918 …for (deUint32 memoryTypeNdx = 0; memoryTypeNdx < deviceMemoryProperties.memoryTypeCount; ++memoryT… in findMatchingMemoryType() local
920 if ((objectMemoryRequirements.memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in findMatchingMemoryType()
921 memoryRequirement.matchesHeap(deviceMemoryProperties.memoryTypes[memoryTypeNdx].propertyFlags)) in findMatchingMemoryType()
923 return memoryTypeNdx; in findMatchingMemoryType()
DvktSparseResourcesBufferTests.cpp223 …const deUint32 memoryTypeNdx = findMatchingMemoryType(instanceInterface, physicalDevice, mem… in build() local
229 memoryTypeNdx, // deUint32 memoryTypeIndex; in build()
255 sparseAllocation->memoryType = memoryTypeNdx; in build()
256 …ocation->heapIndex = getHeapIndexForMemoryType(instanceInterface, physicalDevice, memoryTypeNdx); in build()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/
DvktAtomicOperationTests.cpp1550 for (int memoryTypeNdx = 0; memoryTypeNdx < DE_LENGTH_OF_ARRAY(kMemoryTypes); ++memoryTypeNdx) in addAtomicOperationTests() local
1553 if (kMemoryTypes[memoryTypeNdx].type == AtomicMemoryType::SHARED in addAtomicOperationTests()
1560 …if (kMemoryTypes[memoryTypeNdx].type == AtomicMemoryType::PAYLOAD && shaderTypes[shaderTypeNdx].ty… in addAtomicOperationTests()
1564 …x].name) + "_" + std::string(shaderTypes[shaderTypeNdx].name) + kMemoryTypes[memoryTypeNdx].suffix; in addAtomicOperationTests()
1566 …str(), AtomicShaderType(shaderTypes[shaderTypeNdx].type, kMemoryTypes[memoryTypeNdx].type), dataSi… in addAtomicOperationTests()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/
DvktAtomicOperationTests.cpp1550 for (int memoryTypeNdx = 0; memoryTypeNdx < DE_LENGTH_OF_ARRAY(kMemoryTypes); ++memoryTypeNdx) in addAtomicOperationTests() local
1553 if (kMemoryTypes[memoryTypeNdx].type == AtomicMemoryType::SHARED in addAtomicOperationTests()
1560 …if (kMemoryTypes[memoryTypeNdx].type == AtomicMemoryType::PAYLOAD && shaderTypes[shaderTypeNdx].ty… in addAtomicOperationTests()
1564 …x].name) + "_" + std::string(shaderTypes[shaderTypeNdx].name) + kMemoryTypes[memoryTypeNdx].suffix; in addAtomicOperationTests()
1566 …str(), AtomicShaderType(shaderTypes[shaderTypeNdx].type, kMemoryTypes[memoryTypeNdx].type), dataSi… in addAtomicOperationTests()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/compute/
DvktComputeBasicComputeShaderTests.cpp2855 deUint32 memoryTypeNdx = 0; in iterate() local
2857 for ( memoryTypeNdx = 0; memoryTypeNdx < deviceMemProps.memoryTypeCount; memoryTypeNdx++) in iterate()
2859 if ((memReqs.memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in iterate()
2860 …(deviceMemProps.memoryTypes[memoryTypeNdx].propertyFlags & VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT) ==… in iterate()
2863 if (memoryTypeNdx == deviceMemProps.memoryTypeCount) in iterate()
2879 memoryTypeNdx, // memoryTypeIndex in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/compute/
DvktComputeBasicComputeShaderTests.cpp2855 deUint32 memoryTypeNdx = 0; in iterate() local
2857 for ( memoryTypeNdx = 0; memoryTypeNdx < deviceMemProps.memoryTypeCount; memoryTypeNdx++) in iterate()
2859 if ((memReqs.memoryTypeBits & (1u << memoryTypeNdx)) != 0 && in iterate()
2860 …(deviceMemProps.memoryTypes[memoryTypeNdx].propertyFlags & VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT) ==… in iterate()
2863 if (memoryTypeNdx == deviceMemProps.memoryTypeCount) in iterate()
2879 memoryTypeNdx, // memoryTypeIndex in iterate()
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/
DvktPipelineRenderToImageTests.cpp672 const deUint32 memoryTypeNdx = getMemoryTypeNdx (context, caseDef); in getMaxDeviceHeapSize() local
674 return memoryProperties.memoryHeaps[memoryProperties.memoryTypes[memoryTypeNdx].heapIndex].size; in getMaxDeviceHeapSize()
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/
DvktPipelineRenderToImageTests.cpp672 const deUint32 memoryTypeNdx = getMemoryTypeNdx (context, caseDef); in getMaxDeviceHeapSize() local
674 return memoryProperties.memoryHeaps[memoryProperties.memoryTypes[memoryTypeNdx].heapIndex].size; in getMaxDeviceHeapSize()