Lines Matching refs:device
90 ShaderModuleId getShaderModuleIdentifier (const DeviceInterface& vkd, const VkDevice device, const VkShaderModule module)
93 vkd.getShaderModuleIdentifierEXT(device, module, &idExt);
98 ShaderModuleId getShaderModuleIdentifier (const DeviceInterface& vkd, const VkDevice device, const VkShaderModuleCreateInfo& createInfo)
101 vkd.getShaderModuleCreateInfoIdentifierEXT(device, &createInfo, &idExt);
440 PipelineExecutablePropertyVec getPipelineExecutableProperties (const DeviceInterface& vkd, VkDevice device, VkPipeline pipeline, CapturedPropertiesFlags captureFlags)
447 VK_CHECK(vkd.getPipelineExecutablePropertiesKHR(device, &pipelineInfo, &executableCount, nullptr));
454 VK_CHECK(vkd.getPipelineExecutablePropertiesKHR(device, &pipelineInfo, &executableCount, propertiesKHR.data()));
470 VK_CHECK(vkd.getPipelineExecutableStatisticsKHR(device, &executableInfo, &statCount, nullptr));
476 VK_CHECK(vkd.getPipelineExecutableStatisticsKHR(device, &executableInfo, &statCount, statsKHR.data()));
494 VK_CHECK(vkd.getPipelineExecutableInternalRepresentationsKHR(device, &executableInfo, &irsCount, nullptr));
502 VK_CHECK(vkd.getPipelineExecutableInternalRepresentationsKHR(device, &executableInfo, &irsCount, irsKHR.data()));
513 VK_CHECK(vkd.getPipelineExecutableInternalRepresentationsKHR(device, &executableInfo, &irsCount, irsKHR.data()));
1466 // Helper to create a new device supporting shader module identifiers.
1469 Move<VkDevice> device;
1488 // Get device features (these have to be checked in the test case).
1501 // Make sure robust buffer access is disabled as in the default device.
1548 // Create custom device and related objects
1549 device = createCustomDevice(context.getTestContext().getCommandLine().isValidationEnabled(), vkp, instance, vki, physicalDevice, &createInfo);
1550 vkd.reset(new DeviceDriver(vkp, instance, device.get(), context.getUsedApiVersion()));
1551 queue = getDeviceQueue(*vkd, *device, queueFamilyIndex, 0u);
1552 allocator.reset(new SimpleAllocator(*vkd, device.get(), getPhysicalDeviceMemoryProperties(vki, physicalDevice)));
1558 // The second device may be the one from the context or a new device for the cases that require different devices.
1560 const auto device = m_context.getDevice();
1564 const auto dev1 = device;
1566 const auto dev2 = (m_params->differentDevices ? helper->device.get() : device);
1754 void setModule (const DeviceInterface &vkd, const VkDevice device, const ShaderWrapper shader, UseModuleCase moduleUse, de::Random& rnd)
1758 m_moduleId = getShaderModuleIdentifier(vkd, device, shader.getModule());
1838 const auto device = m_context.getDevice();
1875 const auto cmdPool = makeCommandPool(vkd, device, queueIndex);
1876 const auto cmdBufferPtr = allocateCommandBuffer(vkd, device, cmdPool.get(), VK_COMMAND_BUFFER_LEVEL_PRIMARY);
1889 const auto mainSetLayout = setLayoutBuilder.build(vkd, device);
1893 ? DescriptorSetLayoutBuilder().addSingleBinding(VK_DESCRIPTOR_TYPE_ACCELERATION_STRUCTURE_KHR, shaderStages).build(vkd, device)
1899 PipelineLayoutWrapper pipelineLayout (m_params->constructionType, vkd, device, de::sizeU32(setLayouts), de::dataOrNull(setLayouts));
1907 const auto descriptorPool = poolBuilder.build(vkd, device, VK_DESCRIPTOR_POOL_CREATE_FREE_DESCRIPTOR_SET_BIT, de::sizeU32(setLayouts));
1912 BufferWithMemory storageBuffer (vkd, device, alloc, storageBufferInfo, MemoryRequirement::HostVisible);
1921 BufferWithMemory uniformBuffer (vkd, device, alloc, uniformBufferInfo, MemoryRequirement::HostVisible);
1927 flushAlloc(vkd, device, storageBufferAlloc);
1928 flushAlloc(vkd, device, uniformBufferAlloc);
1969 blas->createAndBuild(vkd, device, cmdBuffer, alloc);
1973 tlas->createAndBuild(vkd, device, cmdBuffer, alloc);
2015 colorAtt .reset(new ImageWithMemory(vkd, device, alloc, colorAttCreateInfo, MemoryRequirement::Any));
2018 colorAttView = makeImageView(vkd, device, colorAtt->get(), VK_IMAGE_VIEW_TYPE_2D, fbFormat, colorSRR);
2019 renderPass = RenderPassWrapper(m_params->constructionType, vkd, device, fbFormat);
2020 renderPass.createFramebuffer(vkd, device, **colorAtt, colorAttView.get(), fbExtent.width, fbExtent.height);
2025 verifBuffer.reset(new BufferWithMemory(vkd, device, alloc, verifBufferInfo, MemoryRequirement::HostVisible));
2032 const auto mainDescriptorSet = makeDescriptorSet(vkd, device, descriptorPool.get(), mainSetLayout.get());
2033 const auto auxDescriptorSet = (isRT ? makeDescriptorSet(vkd, device, descriptorPool.get(), auxSetLayout.get()) : Move<VkDescriptorSet>());
2063 updateBuilder.update(vkd, device);
2105 pipelineCache = createPipelineCache(vkd, device, &cacheCreateInfo);
2158 pipelineWrappers.emplace_back(new GraphicsPipelineWrapper(vki, vkd, physicalDevice, device, m_context.getDeviceExtensions(), m_params->constructionType, captureFlags));
2173 vertModules .push_back(ShaderWrapper(vkd, device, binaries.get(vertName)));
2179 tescModules .push_back(ShaderWrapper(vkd, device, binaries.get(tescName)));
2186 teseModules .push_back(ShaderWrapper(vkd, device, binaries.get(teseName)));
2193 geomModules .push_back(ShaderWrapper(vkd, device, binaries.get(geomName)));
2200 fragModules .push_back(ShaderWrapper(vkd, device, binaries.get(fragName)));
2247 classicExeProps = getPipelineExecutableProperties(vkd, device, pipelines.back(), m_params->capturedProperties);
2251 vertToRun.setModule(vkd, device, vertModule, m_params->moduleUseCase, m_params->getRndGen());
2256 tescToRun.setModule(vkd, device, tescModule, m_params->moduleUseCase, m_params->getRndGen());
2262 teseToRun.setModule(vkd, device, teseModule, m_params->moduleUseCase, m_params->getRndGen());
2268 geomToRun.setModule(vkd, device, geomModule, m_params->moduleUseCase, m_params->getRndGen());
2274 fragToRun.setModule(vkd, device, fragModule, m_params->moduleUseCase, m_params->getRndGen());
2283 pipelineWrappers.emplace_back(new GraphicsPipelineWrapper(vki, vkd, physicalDevice, device, m_context.getDeviceExtensions(), m_params->constructionType, captureFlags));
2345 identifierExeProps = getPipelineExecutableProperties(vkd, device, pipelines.back(), m_params->capturedProperties);
2363 compModules.push_back(ShaderWrapper(vkd, device, binaries.get(compName)));
2364 pipelinePtrs.push_back(makeComputePipeline(vkd, device, pipelineLayout.get(), captureFlags, nullptr, compModules.back().getModule(), 0u, scInfo.get(), pipelineCache.get()));
2371 classicExeProps = getPipelineExecutableProperties(vkd, device, pipelines.back(), m_params->capturedProperties);
2377 auto moduleId = getShaderModuleIdentifier(vkd, device, compModule.getModule());
2413 VkResult creationResult = vkd.createComputePipelines(device, pipelineCache.get(), 1u, &pipelineCreateInfo, nullptr, &pipeline);
2429 Move<VkPipeline> pipelinePtr(check<VkPipeline>(pipeline), Deleter<VkPipeline>(vkd, device, nullptr));
2434 identifierExeProps = getPipelineExecutableProperties(vkd, device, pipelines.back(), m_params->capturedProperties);
2490 rgenModules .push_back(ShaderWrapper(vkd, device, binaries.get(rgenName)));
2496 chitModules .push_back(ShaderWrapper(vkd, device, binaries.get(chitName)));
2504 ahitModules .push_back(ShaderWrapper(vkd, device, binaries.get(ahitName)));
2512 isecModules .push_back(ShaderWrapper(vkd, device, binaries.get(isecName)));
2520 missModules .push_back(ShaderWrapper(vkd, device, binaries.get(missName)));
2528 callModules .push_back(ShaderWrapper(vkd, device, binaries.get(callName)));
2561 pipelinePtrs.emplace_back(rayTracingPipeline->createPipeline(vkd, device, pipelineLayout.get(), emptyPipelinesVec, pipelineCache.get()));
2574 pipelinePtrs.emplace_back(linkedPipeline->createPipeline(vkd, device, pipelineLayout.get(), rawPipelines, pipelineCache.get()));
2579 classicExeProps = getPipelineExecutableProperties(vkd, device, pipelines.back(), m_params->capturedProperties);
2584 rgenToRun.setModule(vkd, device, rgenModule, m_params->moduleUseCase, m_params->getRndGen());
2589 chitToRun.setModule(vkd, device, chitModule, m_params->moduleUseCase, m_params->getRndGen());
2595 ahitToRun.setModule(vkd, device, ahitModule, m_params->moduleUseCase, m_params->getRndGen());
2601 isecToRun.setModule(vkd, device, isecModule, m_params->moduleUseCase, m_params->getRndGen());
2607 missToRun.setModule(vkd, device, missModule, m_params->moduleUseCase, m_params->getRndGen());
2613 callToRun.setModule(vkd, device, callModule, m_params->moduleUseCase, m_params->getRndGen());
2732 pipelinePtrs.emplace_back(shaderOwningPipeline->createPipeline(vkd, device, pipelineLayout.get(), emptyPipelinesVec, pipelineCache.get()));
2755 pipelinePtrs.emplace_back(auxiliaryPipeline->createPipeline(vkd, device, pipelineLayout.get(), rawPipelines, pipelineCache.get()));
2775 identifierExeProps = getPipelineExecutableProperties(vkd, device, pipelines.back(), m_params->capturedProperties);
2779 rgenSBT = boundPipeline->createShaderBindingTable(vkd, device, pipeline, alloc, shaderGroupHandleSize, shaderGroupBaseAlignment, rgenGroup, 1u);
2780 rgenRegion = makeStridedDeviceAddressRegionKHR(getBufferDeviceAddress(vkd, device, rgenSBT->get(), 0), shaderGroupHandleSize, shaderGroupHandleSize);
2784 xhitSBT = boundPipeline->createShaderBindingTable(vkd, device, pipeline, alloc, shaderGroupHandleSize, shaderGroupBaseAlignment, xhitGroup.get(), 1u);
2785 xhitRegion = makeStridedDeviceAddressRegionKHR(getBufferDeviceAddress(vkd, device, xhitSBT->get(), 0), shaderGroupHandleSize, shaderGroupHandleSize);
2790 missSBT = boundPipeline->createShaderBindingTable(vkd, device, pipeline, alloc, shaderGroupHandleSize, shaderGroupBaseAlignment, missGroup.get(), 1u);
2791 missRegion = makeStridedDeviceAddressRegionKHR(getBufferDeviceAddress(vkd, device, missSBT->get(), 0), shaderGroupHandleSize, shaderGroupHandleSize);
2796 callSBT = boundPipeline->createShaderBindingTable(vkd, device, pipeline, alloc, shaderGroupHandleSize, shaderGroupBaseAlignment, callGroup.get(), 1u);
2797 callRegion = makeStridedDeviceAddressRegionKHR(getBufferDeviceAddress(vkd, device, callSBT->get(), 0), shaderGroupHandleSize, shaderGroupHandleSize);
2882 submitCommandsAndWait(vkd, device, queue, cmdBuffer);
2890 invalidateAlloc(vkd, device, verifBufferAlloc);
2906 invalidateAlloc(vkd, device, storageBufferAlloc);
3161 const auto device = m_context.getDevice();
3199 ImageWithMemory colorAtt (vkd, device, alloc, colorAttCreateInfo, MemoryRequirement::Any);
3202 const auto colorAttView = makeImageView(vkd, device, colorAtt.get(), VK_IMAGE_VIEW_TYPE_2D, fbFormat, colorSRR);
3203 RenderPassWrapper renderPass (m_constructionType, vkd, device, fbFormat);
3204 renderPass.createFramebuffer(vkd, device, colorAtt.get(), colorAttView.get(), fbExtent.width, fbExtent.height);
3210 BufferWithMemory verifBuffer (vkd, device, alloc, verifBufferInfo, MemoryRequirement::HostVisible);
3214 const auto vertModule = ShaderWrapper(vkd, device, binaries.get("vert"));
3215 const auto fragModule = ShaderWrapper(vkd, device, binaries.get("frag"));
3216 const auto teseModule = ShaderWrapper(vkd, device, binaries.get("tese"));
3227 tescModules.emplace_back(ShaderWrapper(vkd, device, binaries.get(shaderName)));
3233 const auto vertId = getShaderModuleIdentifier(vkd, device, vertModule.getModule());
3234 const auto fragId = getShaderModuleIdentifier(vkd, device, fragModule.getModule());
3235 const auto teseId = getShaderModuleIdentifier(vkd, device, teseModule.getModule());
3238 tescIds.emplace_back(getShaderModuleIdentifier(vkd, device, mod.getModule()));
3286 const auto pipelineCache = createPipelineCache(vkd, device, &cacheCreateInfo);
3289 const PipelineLayoutWrapper pipelineLayout (m_constructionType, vkd, device);
3297 GraphicsPipelineWrapperPtr wrapper (new GraphicsPipelineWrapper(vki, vkd, physicalDevice, device, m_context.getDeviceExtensions(), m_constructionType));
3365 pipelineWrappers.emplace_back(new GraphicsPipelineWrapper(vki, vkd, physicalDevice, device, m_context.getDeviceExtensions(), m_constructionType));
3421 const auto cmdPool = makeCommandPool(vkd, device, queueIndex);
3422 const auto cmdBufferPtr = allocateCommandBuffer(vkd, device, cmdPool.get(), VK_COMMAND_BUFFER_LEVEL_PRIMARY);
3447 submitCommandsAndWait(vkd, device, queue, cmdBuffer);
3456 invalidateAlloc(vkd, device, verifBufferAlloc);