/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/sparse_resources/ |
H A D | vktSparseResourcesBufferSparseResidency.cpp | 164 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 198 const Unique<VkBuffer> sparseBuffer(createBuffer(deviceInterface, getDevice(), &bufferCreateInfo)); in iterate() 201 const Unique<VkSemaphore> bufferMemoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 203 const VkMemoryRequirements bufferMemRequirements = getBufferMemoryRequirements(deviceInterface, getDevice(), *sparseBuffer); in iterate() 224 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 235 const VkSparseMemoryBind sparseMemoryBind = makeSparseMemoryBind(deviceInterface, getDevice(), bufferMemRequirements.alignment, memoryType, bufferMemRequirements.alignment * sparseBindNdx); in iterate() 237 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(sparseMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)))); in iterate() 267 VK_CHECK(deviceInterface.queueBindSparse(sparseQueue.queueHandle, 1u, &bindSparseInfo, DE_NULL)); in iterate() 272 const Unique<VkBuffer> inputBuffer (createBuffer(deviceInterface, getDevice(), &inputBufferCreateInfo)); in iterate() 273 const de::UniquePtr<Allocation> inputBufferAlloc (bindBuffer(deviceInterface, getDevic in iterate() [all...] |
H A D | vktSparseResourcesBufferSparseBinding.cpp | 125 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 157 const Unique<VkBuffer> sparseBuffer(createBuffer(deviceInterface, getDevice(), &bufferCreateInfo)); in iterate() 160 const Unique<VkSemaphore> bufferMemoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 162 const VkMemoryRequirements bufferMemRequirement = getBufferMemoryRequirements(deviceInterface, getDevice(), *sparseBuffer); in iterate() 183 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 201 sparseMemoryAllocation = allocateMemory(deviceInterface, getDevice(), &allocateInfo); in iterate() 244 VK_CHECK(deviceInterface.queueBindSparse(sparseQueue.queueHandle, 1u, &bindSparseInfo, DE_NULL)); in iterate() 248 const Unique<VkCommandPool> commandPool(makeCommandPool(deviceInterface, getDevice(), computeQueue.queueFamilyIndex)); in iterate() 249 const Unique<VkCommandBuffer> commandBuffer(allocateCommandBuffer(deviceInterface, getDevice(), *commandPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY)); in iterate() 252 beginCommandBuffer(deviceInterface, *commandBuffe in iterate() [all...] |
H A D | vktSparseResourcesBufferMemoryAliasing.cpp | 182 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 216 const Unique<VkBuffer> sparseBufferWrite(createBuffer(deviceInterface, getDevice(), &bufferCreateInfo)); in iterate() 217 const Unique<VkBuffer> sparseBufferRead(createBuffer(deviceInterface, getDevice(), &bufferCreateInfo)); in iterate() 220 const Unique<VkSemaphore> bufferMemoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 222 const VkMemoryRequirements bufferMemRequirements = getBufferMemoryRequirements(deviceInterface, getDevice(), *sparseBufferWrite); in iterate() 238 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 247 const VkSparseMemoryBind sparseMemoryBind = makeSparseMemoryBind(deviceInterface, getDevice(), bufferMemRequirements.size, memoryType, 0u); in iterate() 249 Move<VkDeviceMemory> deviceMemoryPtr(check<VkDeviceMemory>(sparseMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)); in iterate() 292 VK_CHECK(deviceInterface.queueBindSparse(sparseQueue.queueHandle, 1u, &bindSparseInfo, DE_NULL)); in iterate() 297 const Unique<VkBuffer> outputBuffer(createBuffer(deviceInterface, getDevic in iterate() [all...] |
H A D | vktSparseResourcesShaderIntrinsicsSampled.cpp | 591 const DeviceInterface& deviceInterface = getDeviceInterface(); in recordCommands() local 611 m_vertexBuffer = createBuffer(deviceInterface, getDevice(), &vertexBufferCreateInfo); in recordCommands() 612 m_vertexBufferAlloc = bindBuffer(deviceInterface, getDevice(), getAllocator(), *m_vertexBuffer, MemoryRequirement::HostVisible); in recordCommands() 615 flushAlloc(deviceInterface, getDevice(), *m_vertexBufferAlloc); in recordCommands() 693 m_renderPass = createRenderPass(deviceInterface, getDevice(), &renderPassInfo); in recordCommands() 700 const Unique<VkDescriptorSetLayout> descriptorSetLayout(descriptorLayerBuilder.build(deviceInterface, getDevice())); in recordCommands() 707 descriptorPool = descriptorPoolBuilder.build(deviceInterface, getDevice(), VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, imageSparseInfo.mipLevels); in recordCommands() 730 m_sampler = createSampler(deviceInterface, getDevice(), &samplerCreateInfo); in recordCommands() 759 pipelineLayout = createPipelineLayout(deviceInterface, getDevice(), &pipelineLayoutParams); in recordCommands() 763 Move<VkShaderModule> vertexModule = createShaderModule(deviceInterface, getDevic in recordCommands() [all...] |
H A D | vktSparseResourcesImageMemoryAliasing.cpp | 219 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 274 const Unique<VkImage> imageRead(createImage(deviceInterface, getDevice(), &imageSparseInfo)); in iterate() 275 const Unique<VkImage> imageWrite(createImage(deviceInterface, getDevice(), &imageSparseInfo)); in iterate() 278 const Unique<VkSemaphore> memoryBindSemaphoreTransfer(createSemaphore(deviceInterface, getDevice())); in iterate() 279 const Unique<VkSemaphore> memoryBindSemaphoreCompute(createSemaphore(deviceInterface, getDevice())); in iterate() 287 const VkMemoryRequirements imageMemoryRequirements = getImageMemoryRequirements(deviceInterface, getDevice(), *imageRead); in iterate() 304 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 315 sparseMemoryRequirements = getImageSparseMemoryRequirements(deviceInterface, getDevice(), *imageRead); in iterate() 347 const VkSparseImageMemoryBind imageMemoryBind = makeSparseImageMemoryBind(deviceInterface, getDevice(), in iterate() 350 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(imageMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevic in iterate() [all...] |
H A D | vktSparseResourcesMipmapSparseResidency.cpp | 164 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 217 const Unique<VkImage> imageSparse(createImage(deviceInterface, getDevice(), &imageSparseInfo)); in iterate() 220 const Unique<VkSemaphore> imageMemoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 226 const VkMemoryRequirements imageMemoryRequirements = getImageMemoryRequirements(deviceInterface, getDevice(), *imageSparse); in iterate() 243 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 253 sparseMemoryRequirements = getImageSparseMemoryRequirements(deviceInterface, getDevice(), *imageSparse); in iterate() 285 const VkSparseImageMemoryBind imageMemoryBind = makeSparseImageMemoryBind(deviceInterface, getDevice(), in iterate() 288 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(imageMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)))); in iterate() 295 const VkSparseMemoryBind imageMipTailMemoryBind = makeSparseMemoryBind(deviceInterface, getDevice(), in iterate() 298 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(imageMipTailMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevic in iterate() [all...] |
H A D | vktSparseResourcesImageSparseBinding.cpp | 165 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 214 const Unique<VkImage> imageSparse(createImage(deviceInterface, getDevice(), &imageSparseInfo)); in iterate() 217 const Unique<VkSemaphore> imageMemoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 220 const VkMemoryRequirements imageMemoryRequirements = getImageMemoryRequirements(deviceInterface, getDevice(), *imageSparse); in iterate() 240 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 251 const VkSparseMemoryBind sparseMemoryBind = makeSparseMemoryBind(deviceInterface, getDevice(), in iterate() 254 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(sparseMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)))); in iterate() 286 VK_CHECK(deviceInterface.queueBindSparse(sparseQueue.queueHandle, 1u, &bindSparseInfo, DE_NULL)); in iterate() 319 const Unique<VkCommandPool> commandPool(makeCommandPool(deviceInterface, getDevice(), computeQueue.queueFamilyIndex)); in iterate() 320 const Unique<VkCommandBuffer> commandBuffer(allocateCommandBuffer(deviceInterface, getDevic in iterate() [all...] |
H A D | vktSparseResourcesShaderIntrinsicsBase.cpp | 523 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 528 const Unique<VkImage> imageSparse(createImage(deviceInterface, getDevice(), &imageSparseInfo)); in iterate() 531 const Unique<VkSemaphore> memoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 551 const VkMemoryRequirements imageMemoryRequirements = getImageMemoryRequirements(deviceInterface, getDevice(), *imageSparse); in iterate() 565 sparseMemoryRequirements = getImageSparseMemoryRequirements(deviceInterface, getDevice(), *imageSparse); in iterate() 613 const VkSparseImageMemoryBind imageMemoryBind = makeSparseImageMemoryBind(deviceInterface, getDevice(), in iterate() 616 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(imageMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)))); in iterate() 626 const VkSparseMemoryBind imageMipTailMemoryBind = makeSparseMemoryBind(deviceInterface, getDevice(), in iterate() 629 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(imageMipTailMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)))); in iterate() 637 const VkSparseMemoryBind imageMipTailMemoryBind = makeSparseMemoryBind(deviceInterface, getDevic in iterate() [all...] |
H A D | vktSparseResourcesShaderIntrinsicsStorage.cpp | 410 const DeviceInterface& deviceInterface = getDeviceInterface(); in recordCommands() local 425 const Unique<VkDescriptorSetLayout> descriptorSetLayout(descriptorLayerBuilder.build(deviceInterface, getDevice())); in recordCommands() 428 pipelineLayout = makePipelineLayout(deviceInterface, getDevice(), *descriptorSetLayout); in recordCommands() 437 descriptorPool = descriptorPoolBuilder.build(deviceInterface, getDevice(), VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, imageSparseInfo.mipLevels); in recordCommands() 474 deviceInterface.cmdPipelineBarrier(commandBuffer, VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT, 0u, 0u, DE_NULL, 0u, DE_NULL, 3u, imageShaderAccessBarriers); in recordCommands() 487 Unique<VkShaderModule> shaderModule(createShaderModule(deviceInterface, getDevice(), m_context.getBinaryCollection().get("compute"), 0u)); in recordCommands() 504 pipelines[mipLevelNdx] = makeVkSharedPtr(makeComputePipeline(deviceInterface, getDevice(), *pipelineLayout, (VkPipelineCreateFlags) 0u, nullptr, *shaderModule, (VkPipelineShaderStageCreateFlags) 0u, &specializationInfo)); in recordCommands() 507 deviceInterface.cmdBindPipeline(commandBuffer, VK_PIPELINE_BIND_POINT_COMPUTE, computePipeline); in recordCommands() 510 descriptorSets[mipLevelNdx] = makeVkSharedPtr(makeDescriptorSet(deviceInterface, getDevice(), *descriptorPool, *descriptorSetLayout)); in recordCommands() 516 imageSparseViews[mipLevelNdx] = makeVkSharedPtr(makeImageView(deviceInterface, getDevic in recordCommands() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/ |
H A D | vktSparseResourcesBufferSparseResidency.cpp | 166 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 200 const Unique<VkBuffer> sparseBuffer(createBuffer(deviceInterface, getDevice(), &bufferCreateInfo)); in iterate() 203 const Unique<VkSemaphore> bufferMemoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 205 const VkMemoryRequirements bufferMemRequirements = getBufferMemoryRequirements(deviceInterface, getDevice(), *sparseBuffer); in iterate() 226 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 237 const VkSparseMemoryBind sparseMemoryBind = makeSparseMemoryBind(deviceInterface, getDevice(), bufferMemRequirements.alignment, memoryType, bufferMemRequirements.alignment * sparseBindNdx); in iterate() 239 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(sparseMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)))); in iterate() 269 VK_CHECK(deviceInterface.queueBindSparse(sparseQueue.queueHandle, 1u, &bindSparseInfo, DE_NULL)); in iterate() 274 const Unique<VkBuffer> inputBuffer (createBuffer(deviceInterface, getDevice(), &inputBufferCreateInfo)); in iterate() 275 const de::UniquePtr<Allocation> inputBufferAlloc (bindBuffer(deviceInterface, getDevic in iterate() [all...] |
H A D | vktSparseResourcesBufferSparseBinding.cpp | 127 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 159 const Unique<VkBuffer> sparseBuffer(createBuffer(deviceInterface, getDevice(), &bufferCreateInfo)); in iterate() 162 const Unique<VkSemaphore> bufferMemoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 164 const VkMemoryRequirements bufferMemRequirement = getBufferMemoryRequirements(deviceInterface, getDevice(), *sparseBuffer); in iterate() 185 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 203 sparseMemoryAllocation = allocateMemory(deviceInterface, getDevice(), &allocateInfo); in iterate() 246 VK_CHECK(deviceInterface.queueBindSparse(sparseQueue.queueHandle, 1u, &bindSparseInfo, DE_NULL)); in iterate() 250 const Unique<VkCommandPool> commandPool(makeCommandPool(deviceInterface, getDevice(), computeQueue.queueFamilyIndex)); in iterate() 251 const Unique<VkCommandBuffer> commandBuffer(allocateCommandBuffer(deviceInterface, getDevice(), *commandPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY)); in iterate() 254 beginCommandBuffer(deviceInterface, *commandBuffe in iterate() [all...] |
H A D | vktSparseResourcesBufferMemoryAliasing.cpp | 184 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 218 const Unique<VkBuffer> sparseBufferWrite(createBuffer(deviceInterface, getDevice(), &bufferCreateInfo)); in iterate() 219 const Unique<VkBuffer> sparseBufferRead(createBuffer(deviceInterface, getDevice(), &bufferCreateInfo)); in iterate() 222 const Unique<VkSemaphore> bufferMemoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 224 const VkMemoryRequirements bufferMemRequirements = getBufferMemoryRequirements(deviceInterface, getDevice(), *sparseBufferWrite); in iterate() 240 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 249 const VkSparseMemoryBind sparseMemoryBind = makeSparseMemoryBind(deviceInterface, getDevice(), bufferMemRequirements.size, memoryType, 0u); in iterate() 251 Move<VkDeviceMemory> deviceMemoryPtr(check<VkDeviceMemory>(sparseMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)); in iterate() 294 VK_CHECK(deviceInterface.queueBindSparse(sparseQueue.queueHandle, 1u, &bindSparseInfo, DE_NULL)); in iterate() 299 const Unique<VkBuffer> outputBuffer(createBuffer(deviceInterface, getDevic in iterate() [all...] |
H A D | vktSparseResourcesShaderIntrinsicsSampled.cpp | 591 const DeviceInterface& deviceInterface = getDeviceInterface(); in recordCommands() local 611 m_vertexBuffer = createBuffer(deviceInterface, getDevice(), &vertexBufferCreateInfo); in recordCommands() 612 m_vertexBufferAlloc = bindBuffer(deviceInterface, getDevice(), getAllocator(), *m_vertexBuffer, MemoryRequirement::HostVisible); in recordCommands() 615 flushAlloc(deviceInterface, getDevice(), *m_vertexBufferAlloc); in recordCommands() 693 m_renderPass = createRenderPass(deviceInterface, getDevice(), &renderPassInfo); in recordCommands() 700 const Unique<VkDescriptorSetLayout> descriptorSetLayout(descriptorLayerBuilder.build(deviceInterface, getDevice())); in recordCommands() 707 descriptorPool = descriptorPoolBuilder.build(deviceInterface, getDevice(), VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, imageSparseInfo.mipLevels); in recordCommands() 730 m_sampler = createSampler(deviceInterface, getDevice(), &samplerCreateInfo); in recordCommands() 759 pipelineLayout = createPipelineLayout(deviceInterface, getDevice(), &pipelineLayoutParams); in recordCommands() 763 Move<VkShaderModule> vertexModule = createShaderModule(deviceInterface, getDevic in recordCommands() [all...] |
H A D | vktSparseResourcesImageMemoryAliasing.cpp | 221 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 276 const Unique<VkImage> imageRead(createImage(deviceInterface, getDevice(), &imageSparseInfo)); in iterate() 277 const Unique<VkImage> imageWrite(createImage(deviceInterface, getDevice(), &imageSparseInfo)); in iterate() 280 const Unique<VkSemaphore> memoryBindSemaphoreTransfer(createSemaphore(deviceInterface, getDevice())); in iterate() 281 const Unique<VkSemaphore> memoryBindSemaphoreCompute(createSemaphore(deviceInterface, getDevice())); in iterate() 289 const VkMemoryRequirements imageMemoryRequirements = getImageMemoryRequirements(deviceInterface, getDevice(), *imageRead); in iterate() 306 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 317 sparseMemoryRequirements = getImageSparseMemoryRequirements(deviceInterface, getDevice(), *imageRead); in iterate() 349 const VkSparseImageMemoryBind imageMemoryBind = makeSparseImageMemoryBind(deviceInterface, getDevice(), in iterate() 352 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(imageMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevic in iterate() [all...] |
H A D | vktSparseResourcesMipmapSparseResidency.cpp | 166 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 219 const Unique<VkImage> imageSparse(createImage(deviceInterface, getDevice(), &imageSparseInfo)); in iterate() 222 const Unique<VkSemaphore> imageMemoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 228 const VkMemoryRequirements imageMemoryRequirements = getImageMemoryRequirements(deviceInterface, getDevice(), *imageSparse); in iterate() 245 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 255 sparseMemoryRequirements = getImageSparseMemoryRequirements(deviceInterface, getDevice(), *imageSparse); in iterate() 287 const VkSparseImageMemoryBind imageMemoryBind = makeSparseImageMemoryBind(deviceInterface, getDevice(), in iterate() 290 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(imageMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)))); in iterate() 297 const VkSparseMemoryBind imageMipTailMemoryBind = makeSparseMemoryBind(deviceInterface, getDevice(), in iterate() 300 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(imageMipTailMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevic in iterate() [all...] |
H A D | vktSparseResourcesImageSparseBinding.cpp | 162 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 211 const Unique<VkImage> imageSparse(createImage(deviceInterface, getDevice(), &imageSparseInfo)); in iterate() 214 const Unique<VkSemaphore> imageMemoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 217 const VkMemoryRequirements imageMemoryRequirements = getImageMemoryRequirements(deviceInterface, getDevice(), *imageSparse); in iterate() 237 deviceInterface.getDeviceGroupPeerMemoryFeatures(getDevice(), heapIndex, firstDeviceID, secondDeviceID, &peerMemoryFeatureFlags); in iterate() 248 const VkSparseMemoryBind sparseMemoryBind = makeSparseMemoryBind(deviceInterface, getDevice(), in iterate() 251 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(sparseMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)))); in iterate() 283 VK_CHECK(deviceInterface.queueBindSparse(sparseQueue.queueHandle, 1u, &bindSparseInfo, DE_NULL)); in iterate() 316 const Unique<VkCommandPool> commandPool(makeCommandPool(deviceInterface, getDevice(), computeQueue.queueFamilyIndex)); in iterate() 317 const Unique<VkCommandBuffer> commandBuffer(allocateCommandBuffer(deviceInterface, getDevic in iterate() [all...] |
H A D | vktSparseResourcesShaderIntrinsicsBase.cpp | 523 const DeviceInterface& deviceInterface = getDeviceInterface(); in iterate() local 528 const Unique<VkImage> imageSparse(createImage(deviceInterface, getDevice(), &imageSparseInfo)); in iterate() 531 const Unique<VkSemaphore> memoryBindSemaphore(createSemaphore(deviceInterface, getDevice())); in iterate() 551 const VkMemoryRequirements imageMemoryRequirements = getImageMemoryRequirements(deviceInterface, getDevice(), *imageSparse); in iterate() 565 sparseMemoryRequirements = getImageSparseMemoryRequirements(deviceInterface, getDevice(), *imageSparse); in iterate() 613 const VkSparseImageMemoryBind imageMemoryBind = makeSparseImageMemoryBind(deviceInterface, getDevice(), in iterate() 616 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(imageMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)))); in iterate() 626 const VkSparseMemoryBind imageMipTailMemoryBind = makeSparseMemoryBind(deviceInterface, getDevice(), in iterate() 629 deviceMemUniquePtrVec.push_back(makeVkSharedPtr(Move<VkDeviceMemory>(check<VkDeviceMemory>(imageMipTailMemoryBind.memory), Deleter<VkDeviceMemory>(deviceInterface, getDevice(), DE_NULL)))); in iterate() 637 const VkSparseMemoryBind imageMipTailMemoryBind = makeSparseMemoryBind(deviceInterface, getDevic in iterate() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/pipeline/ |
H A D | vktPipelineMultisampleBaseResolveAndPerSampleFetch.cpp | 124 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); in iterate() local 164 const de::UniquePtr<ImageWithMemory> imageMS(new ImageWithMemory(deviceInterface, device, allocator, imageMSInfo, MemoryRequirement::Any)); in iterate() 172 const de::UniquePtr<ImageWithMemory> imageRS(new ImageWithMemory(deviceInterface, device, allocator, imageRSInfo, MemoryRequirement::Any)); in iterate() 180 imagesPerSampleVec[sampleNdx] = de::SharedPtr<ImageWithMemory>(new ImageWithMemory(deviceInterface, device, allocator, imageRSInfo, MemoryRequirement::Any)); in iterate() 341 const Unique<VkRenderPass> renderPass(createRenderPass(deviceInterface, device, &renderPassInfo)); in iterate() 350 imageViewsShPtrs[0] = makeVkSharedPtr(makeImageView(deviceInterface, device, **imageMS, mapImageViewType(m_imageType), imageMSInfo.format, fullImageRange)); in iterate() 351 imageViewsShPtrs[1] = makeVkSharedPtr(makeImageView(deviceInterface, device, **imageRS, mapImageViewType(m_imageType), imageRSInfo.format, fullImageRange)); in iterate() 358 imageViewsShPtrs[firstSubpassAttachmentsCount + sampleNdx] = makeVkSharedPtr(makeImageView(deviceInterface, device, **imagesPerSampleVec[sampleNdx], mapImageViewType(m_imageType), imageRSInfo.format, fullImageRange)); in iterate() 376 const Unique<VkFramebuffer> framebuffer(createFramebuffer(deviceInterface, device, &framebufferInfo)); in iterate() 392 const Unique<VkPipelineLayout> pipelineLayoutMSPass(createPipelineLayout(deviceInterface, devic in iterate() [all...] |
H A D | vktPipelineMultisampleBaseResolve.cpp | 61 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); in iterate() local 103 const de::UniquePtr<ImageWithMemory> imageMS(new ImageWithMemory(deviceInterface, device, allocator, imageMSInfo, MemoryRequirement::Any)); in iterate() 110 const de::UniquePtr<ImageWithMemory> imageRS(new ImageWithMemory(deviceInterface, device, allocator, imageRSInfo, MemoryRequirement::Any)); in iterate() 182 const Unique<VkRenderPass> renderPass(createRenderPass(deviceInterface, device, &renderPassInfo)); in iterate() 187 const Unique<VkImageView> imageMSView(makeImageView(deviceInterface, device, **imageMS, mapImageViewType(m_imageType), imageMSInfo.format, fullImageRange)); in iterate() 188 const Unique<VkImageView> imageRSView(makeImageView(deviceInterface, device, **imageRS, mapImageViewType(m_imageType), imageMSInfo.format, fullImageRange)); in iterate() 206 const Unique<VkFramebuffer> framebuffer(createFramebuffer(deviceInterface, device, &framebufferInfo)); in iterate() 233 const Unique<VkPipelineLayout> pipelineLayout(createPipelineLayout(deviceInterface, device, &pipelineLayoutParams)); in iterate() 238 de::SharedPtr<BufferWithMemory> vertexBuffer = de::SharedPtr<BufferWithMemory>(new BufferWithMemory(deviceInterface, device, allocator, makeBufferCreateInfo(vertexDataDesc.dataSize, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT), MemoryRequirement::HostVisible)); in iterate() 243 flushAlloc(deviceInterface, devic in iterate() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/pipeline/ |
H A D | vktPipelineMultisampleBaseResolveAndPerSampleFetch.cpp | 126 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); in iterate() local 166 const de::UniquePtr<ImageWithMemory> imageMS(new ImageWithMemory(deviceInterface, device, allocator, imageMSInfo, MemoryRequirement::Any)); in iterate() 174 const de::UniquePtr<ImageWithMemory> imageRS(new ImageWithMemory(deviceInterface, device, allocator, imageRSInfo, MemoryRequirement::Any)); in iterate() 182 imagesPerSampleVec[sampleNdx] = de::SharedPtr<ImageWithMemory>(new ImageWithMemory(deviceInterface, device, allocator, imageRSInfo, MemoryRequirement::Any)); in iterate() 350 RenderPassWrapper renderPass (m_imageMSParams.pipelineConstructionType, deviceInterface, device, &renderPassInfo); in iterate() 363 imageViewsShPtrs[0] = makeVkSharedPtr(makeImageView(deviceInterface, device, **imageMS, mapImageViewType(m_imageType), imageMSInfo.format, fullImageRange)); in iterate() 364 imageViewsShPtrs[1] = makeVkSharedPtr(makeImageView(deviceInterface, device, **imageRS, mapImageViewType(m_imageType), imageRSInfo.format, fullImageRange)); in iterate() 372 imageViewsShPtrs[firstSubpassAttachmentsCount + sampleNdx] = makeVkSharedPtr(makeImageView(deviceInterface, device, **imagesPerSampleVec[sampleNdx], mapImageViewType(m_imageType), imageRSInfo.format, fullImageRange)); in iterate() 390 renderPass.createFramebuffer(deviceInterface, device, &framebufferInfo, images); in iterate() 406 const PipelineLayoutWrapper pipelineLayoutMSPass(m_imageMSParams.pipelineConstructionType, deviceInterface, devic in iterate() [all...] |
H A D | vktPipelineMultisampleBaseResolve.cpp | 63 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); in iterate() local 105 const de::UniquePtr<ImageWithMemory> imageMS(new ImageWithMemory(deviceInterface, device, allocator, imageMSInfo, MemoryRequirement::Any)); in iterate() 112 const de::UniquePtr<ImageWithMemory> imageRS(new ImageWithMemory(deviceInterface, device, allocator, imageRSInfo, MemoryRequirement::Any)); in iterate() 184 RenderPassWrapper renderPass (m_imageMSParams.pipelineConstructionType, deviceInterface, device, &renderPassInfo); in iterate() 189 const Unique<VkImageView> imageMSView(makeImageView(deviceInterface, device, **imageMS, mapImageViewType(m_imageType), imageMSInfo.format, fullImageRange)); in iterate() 190 const Unique<VkImageView> imageRSView(makeImageView(deviceInterface, device, **imageRS, mapImageViewType(m_imageType), imageMSInfo.format, fullImageRange)); in iterate() 209 renderPass.createFramebuffer(deviceInterface, device, &framebufferInfo, images); in iterate() 236 const PipelineLayoutWrapper pipelineLayout(m_imageMSParams.pipelineConstructionType, deviceInterface, device, &pipelineLayoutParams); in iterate() 241 de::SharedPtr<BufferWithMemory> vertexBuffer = de::SharedPtr<BufferWithMemory>(new BufferWithMemory(deviceInterface, device, allocator, makeBufferCreateInfo(vertexDataDesc.dataSize, VK_BUFFER_USAGE_VERTEX_BUFFER_BIT), MemoryRequirement::HostVisible)); in iterate() 246 flushAlloc(deviceInterface, devic in iterate() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/image/ |
H A D | vktImageAtomicOperationTests.cpp | 505 const DeviceInterface& deviceInterface, in initDataForImage() 538 flushAlloc(deviceInterface, device, bufferAllocation); in initDataForImage() 1031 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); in iterate() local 1048 m_inputBuffer = de::MovePtr<BufferWithMemory>(new BufferWithMemory(deviceInterface, in iterate() 1058 initDataForImage(device, deviceInterface, m_format, m_operation, gridSize, *m_inputBuffer); in iterate() 1061 m_outputBuffer = de::MovePtr<BufferWithMemory>(new BufferWithMemory(deviceInterface, in iterate() 1093 .build(deviceInterface, device); in iterate() 1099 .build(deviceInterface, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 2u); in iterate() 1101 descriptorSetFillImage = makeDescriptorSet(deviceInterface, in iterate() 1106 descriptorSetReadImage = makeDescriptorSet(deviceInterface, in iterate() 504 initDataForImage(const VkDevice device, const DeviceInterface& deviceInterface, const TextureFormat& format, const AtomicOperation operation, const tcu::UVec3& gridSize, BufferWithMemory& buffer) initDataForImage() argument 1209 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); shaderFillImage() local 1262 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); createImageAndView() local 1384 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareDescriptors() local 1423 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsAfterCompute() local 1688 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareDescriptors() local 1727 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsBeforeCompute() local 1752 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsAfterCompute() local [all...] |
H A D | vktImageQualifiersTests.cpp | 369 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); in iterate() local 382 const vk::Unique<VkShaderModule> shaderModule(createShaderModule(deviceInterface, device, m_context.getBinaryCollection().get(m_name), 0u)); in iterate() 385 const vk::Unique<VkPipelineLayout> pipelineLayout(makePipelineLayout(deviceInterface, device, *m_descriptorSetLayout)); in iterate() 386 const vk::Unique<VkPipeline> pipeline(makeComputePipeline(deviceInterface, device, *pipelineLayout, *shaderModule)); in iterate() 389 const Unique<VkCommandPool> cmdPool(createCommandPool(deviceInterface, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex)); in iterate() 390 const Unique<VkCommandBuffer> cmdBuffer(allocateCommandBuffer(deviceInterface, device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY)); in iterate() 393 beginCommandBuffer(deviceInterface, *cmdBuffer); in iterate() 395 deviceInterface.cmdBindPipeline(*cmdBuffer, VK_PIPELINE_BIND_POINT_COMPUTE, *pipeline); in iterate() 396 deviceInterface.cmdBindDescriptorSets(*cmdBuffer, VK_PIPELINE_BIND_POINT_COMPUTE, *pipelineLayout, 0u, 1u, &m_descriptorSet.get(), 0u, DE_NULL); in iterate() 401 deviceInterface in iterate() 501 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareResources() local 540 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareDescriptors() local 569 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsBeforeCompute() local 585 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsAfterCompute() local 640 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareResources() local 653 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareDescriptors() local 678 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsAfterCompute() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/image/ |
H A D | vktImageAtomicOperationTests.cpp | 505 const DeviceInterface& deviceInterface, in initDataForImage() 538 flushAlloc(deviceInterface, device, bufferAllocation); in initDataForImage() 1035 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); in iterate() local 1052 m_inputBuffer = de::MovePtr<BufferWithMemory>(new BufferWithMemory(deviceInterface, in iterate() 1062 initDataForImage(device, deviceInterface, m_format, m_operation, gridSize, *m_inputBuffer); in iterate() 1065 m_outputBuffer = de::MovePtr<BufferWithMemory>(new BufferWithMemory(deviceInterface, in iterate() 1097 .build(deviceInterface, device); in iterate() 1103 .build(deviceInterface, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 2u); in iterate() 1105 descriptorSetFillImage = makeDescriptorSet(deviceInterface, in iterate() 1110 descriptorSetReadImage = makeDescriptorSet(deviceInterface, in iterate() 504 initDataForImage(const VkDevice device, const DeviceInterface& deviceInterface, const TextureFormat& format, const AtomicOperation operation, const tcu::UVec3& gridSize, BufferWithMemory& buffer) initDataForImage() argument 1213 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); shaderFillImage() local 1266 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); createImageAndView() local 1388 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareDescriptors() local 1427 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsAfterCompute() local 1692 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareDescriptors() local 1731 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsBeforeCompute() local 1756 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsAfterCompute() local [all...] |
H A D | vktImageQualifiersTests.cpp | 371 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); in iterate() local 384 const vk::Unique<VkShaderModule> shaderModule(createShaderModule(deviceInterface, device, m_context.getBinaryCollection().get(m_name), 0u)); in iterate() 387 const vk::Unique<VkPipelineLayout> pipelineLayout(makePipelineLayout(deviceInterface, device, *m_descriptorSetLayout)); in iterate() 388 const vk::Unique<VkPipeline> pipeline(makeComputePipeline(deviceInterface, device, *pipelineLayout, *shaderModule)); in iterate() 391 const Unique<VkCommandPool> cmdPool(createCommandPool(deviceInterface, device, VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT, queueFamilyIndex)); in iterate() 392 const Unique<VkCommandBuffer> cmdBuffer(allocateCommandBuffer(deviceInterface, device, *cmdPool, VK_COMMAND_BUFFER_LEVEL_PRIMARY)); in iterate() 395 beginCommandBuffer(deviceInterface, *cmdBuffer); in iterate() 397 deviceInterface.cmdBindPipeline(*cmdBuffer, VK_PIPELINE_BIND_POINT_COMPUTE, *pipeline); in iterate() 398 deviceInterface.cmdBindDescriptorSets(*cmdBuffer, VK_PIPELINE_BIND_POINT_COMPUTE, *pipelineLayout, 0u, 1u, &m_descriptorSet.get(), 0u, DE_NULL); in iterate() 403 deviceInterface in iterate() 503 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareResources() local 542 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareDescriptors() local 571 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsBeforeCompute() local 587 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsAfterCompute() local 642 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareResources() local 655 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); prepareDescriptors() local 680 const DeviceInterface& deviceInterface = m_context.getDeviceInterface(); commandsAfterCompute() local [all...] |