Lines Matching defs:device

223 	virtual void		runPipeline				(const DeviceInterface& vkd, const VkDevice device, const VkCommandBuffer cmdBuffer, const VkImageView slicedImage, const VkImageView auxiliarImage);
224 virtual void runGraphicsPipeline (const DeviceInterface& vkd, const VkDevice device, const VkCommandBuffer cmdBuffer);
225 virtual void runComputePipeline (const DeviceInterface& vkd, const VkDevice device, const VkCommandBuffer cmdBuffer);
407 const DeviceInterface& vkd, const VkDevice device, Allocator& alloc)
419 de::MovePtr<BufferWithMemory> buffer (new BufferWithMemory(vkd, device, alloc, bufferCreateInfo, MemoryRequirement::HostVisible));
424 const DeviceInterface& vkd, const VkDevice device, Allocator& alloc)
428 auto buffer = makeTransferBuffer(extent, format, vkd, device, alloc);
449 de::MovePtr<ImageWithMemory> make3DImage (const DeviceInterface &vkd, const VkDevice device, Allocator& alloc, const VkFormat format, const VkExtent3D& extent, uint32_t mipLevels, const bool sampling)
473 de::MovePtr<ImageWithMemory> image (new ImageWithMemory(vkd, device, alloc, imageCreateInfo, MemoryRequirement::Any));
487 Move<VkImageView> make3DImageView (const DeviceInterface &vkd, const VkDevice device, const VkImage image, const VkFormat format,
512 return createImageView(vkd, device, &viewCreateInfo);
526 void SlicedViewTestInstance::runPipeline (const DeviceInterface& vkd, const VkDevice device, const VkCommandBuffer cmdBuffer, const VkImageView slicedImage, const VkImageView auxiliarImage)
534 m_setLayout = layoutBuilder.build(vkd, device);
538 m_descriptorPool = poolBuilder.build(vkd, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
540 m_descriptorSet = makeDescriptorSet(vkd, device, m_descriptorPool.get(), m_setLayout.get());
541 m_pipelineLayout = makePipelineLayout(vkd, device, m_setLayout.get());
548 updateBuilder.update(vkd, device);
551 runGraphicsPipeline(vkd, device, cmdBuffer);
553 runComputePipeline(vkd, device, cmdBuffer);
558 void SlicedViewTestInstance::runGraphicsPipeline (const DeviceInterface& vkd, const VkDevice device, const VkCommandBuffer cmdBuffer)
562 const auto vertShader = createShaderModule(vkd, device, binaries.get("vert"));
563 const auto fragShader = createShaderModule(vkd, device, binaries.get("frag"));
567 m_renderPass = makeRenderPass(vkd, device);
568 m_framebuffer = makeFramebuffer(vkd, device, m_renderPass.get(), 0u, nullptr, sliceExtent.width, sliceExtent.height);
575 m_pipeline = makeGraphicsPipeline(vkd, device, m_pipelineLayout.get(),
587 void SlicedViewTestInstance::runComputePipeline (const DeviceInterface& vkd, const VkDevice device, const VkCommandBuffer cmdBuffer)
590 const auto compShader = createShaderModule(vkd, device, m_context.getBinaryCollection().get("comp"));
592 m_pipeline = makeComputePipeline(vkd, device, m_pipelineLayout.get(), compShader.get());
602 const auto device = m_context.getDevice();
612 const auto cmdPool = makeCommandPool(vkd, device, qfIndex);
613 const auto cmdBufferPtr = allocateCommandBuffer(vkd, device, cmdPool.get(), VK_COMMAND_BUFFER_LEVEL_PRIMARY);
620 const auto setLayout = setLayoutBuilder.build(vkd, device);
621 const auto pipelineLayout = makePipelineLayout(vkd, device, setLayout.get());
624 const auto compShader = createShaderModule(vkd, device, m_context.getBinaryCollection().get("compSample"));
625 const auto pipeline = makeComputePipeline(vkd, device, pipelineLayout.get(), compShader.get());
631 const auto descriptorPool = poolBuilder.build(vkd, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, 1u);
632 const auto descriptorSet = makeDescriptorSet(vkd, device, descriptorPool.get(), setLayout.get());
656 const auto sampler = createSampler(vkd, device, &samplerCreateInfo);
660 const auto auxiliarImage = make3DImage(vkd, device, alloc, kFormat, levelExtent, 1u, false/*sampling*/);
661 const auto auxiliarView = make3DImageView(vkd, device, auxiliarImage->get(), kFormat, tcu::Nothing, 0u, 1u);
668 updateBuilder.update(vkd, device);
671 const auto verifBuffer = makeTransferBuffer(levelExtent, tcuFormat, vkd, device, alloc);
672 const auto refBuffer = makeTransferBuffer(levelExtent, tcuFormat, vkd, device, alloc);
705 submitCommandsAndWait(vkd, device, queue, cmdBuffer);
710 invalidateAlloc(vkd, device, verifBufferAlloc);
711 invalidateAlloc(vkd, device, refBufferAlloc);
725 const auto device = m_context.getDevice();
734 const auto auxiliarBuffer = makeAndFillTransferBuffer(sliceExtent, tcuFormat, vkd, device, alloc);
735 const auto verifBuffer = makeTransferBuffer(sliceExtent, tcuFormat, vkd, device, alloc);
736 const auto fullImage = make3DImage(vkd, device, alloc, kFormat, fullExtent, m_params.getFullImageLevels(), m_params.sampleImg);
744 const auto cmdPool = makeCommandPool(vkd, device, qfIndex);
745 const auto cmdBufferPtr = allocateCommandBuffer(vkd, device, cmdPool.get(), VK_COMMAND_BUFFER_LEVEL_PRIMARY);
782 const auto slicedView = make3DImageView(vkd, device, fullImage->get(), kFormat, tcu::just(tcu::UVec2(m_params.offset, m_params.getSlicedViewRange())), mipLevel, 1u);
785 const auto auxiliarImage = make3DImage(vkd, device, alloc, kFormat, sliceExtent, 1u, false/*sampling*/);
786 const auto auxiliarView = make3DImageView(vkd, device, auxiliarImage->get(), kFormat, tcu::Nothing, 0u, 1u);
793 runPipeline(vkd, device, cmdBuffer, slicedView.get(), auxiliarView.get());
806 submitCommandsAndWait(vkd, device, queue, cmdBuffer);
813 invalidateAlloc(vkd, device, verifBufferAlloc);
834 const auto device = m_context.getDevice();
843 const auto auxiliarBuffer = makeAndFillTransferBuffer(sliceExtent, tcuFormat, vkd, device, alloc);
844 const auto verifBuffer = makeTransferBuffer(sliceExtent, tcuFormat, vkd, device, alloc);
845 const auto fullImage = make3DImage(vkd, device, alloc, kFormat, fullExtent, m_params.getFullImageLevels(), m_params.sampleImg);
853 const auto cmdPool = makeCommandPool(vkd, device, qfIndex);
854 const auto cmdBufferPtr = allocateCommandBuffer(vkd, device, cmdPool.get(), VK_COMMAND_BUFFER_LEVEL_PRIMARY);
865 const auto slicedView = make3DImageView(vkd, device, fullImage->get(), kFormat, tcu::just(tcu::UVec2(m_params.offset, m_params.getSlicedViewRange())), mipLevel, 1u);
868 const auto auxiliarImage = make3DImage(vkd, device, alloc, kFormat, sliceExtent, 1u, false/*sampling*/);
869 const auto auxiliarView = make3DImageView(vkd, device, auxiliarImage->get(), kFormat, tcu::Nothing, 0u, 1u);
885 runPipeline(vkd, device, cmdBuffer, slicedView.get(), auxiliarView.get());
907 submitCommandsAndWait(vkd, device, queue, cmdBuffer);
914 invalidateAlloc(vkd, device, verifBufferAlloc);