Home
last modified time | relevance | path

Searched refs:pipelineState (Results 1 – 25 of 40) sorted by relevance

12

/external/swiftshader/src/Device/
DSetupProcessor.cpp58 SetupProcessor::State SetupProcessor::update(const vk::GraphicsState &pipelineState, const sw::Spir… in update() argument
64 state.isDrawPoint = pipelineState.isDrawPoint(true); in update()
65 state.isDrawLine = pipelineState.isDrawLine(true); in update()
66 state.isDrawTriangle = pipelineState.isDrawTriangle(true); in update()
68 …state.applyConstantDepthBias = pipelineState.isDrawTriangle(false) && (pipelineState.getConstantDe… in update()
69 …state.applySlopeDepthBias = pipelineState.isDrawTriangle(false) && (pipelineState.getSlopeDepthBia… in update()
70 …state.applyDepthBiasClamp = pipelineState.isDrawTriangle(false) && (pipelineState.getDepthBiasClam… in update()
71 state.interpolateZ = pipelineState.depthBufferActive(attachments) || vPosZW; in update()
73 state.frontFace = pipelineState.getFrontFace(); in update()
74 state.cullMode = pipelineState.getCullMode(); in update()
[all …]
DPixelProcessor.cpp85 const PixelProcessor::State PixelProcessor::update(const vk::GraphicsState &pipelineState, const sw… in update() argument
95 state.pipelineLayoutIdentifier = pipelineState.getPipelineLayout()->identifier; in update()
103 state.alphaToCoverage = pipelineState.hasAlphaToCoverage(); in update()
104 state.depthWriteEnable = pipelineState.depthWriteActive(attachments); in update()
106 if(pipelineState.stencilActive(attachments)) in update()
109 state.frontStencil = pipelineState.getFrontStencil(); in update()
110 state.backStencil = pipelineState.getBackStencil(); in update()
113 if(pipelineState.depthBufferActive(attachments)) in update()
116 state.depthCompareMode = pipelineState.getDepthCompareMode(); in update()
119 …state.depthBias = (pipelineState.getConstantDepthBias() != 0.0f) || (pipelineState.getSlopeDepthBi… in update()
[all …]
DRenderer.cpp199 const vk::GraphicsState &pipelineState = pipeline->getState(dynamicState); in draw() local
200 pixelProcessor.setBlendConstant(pipelineState.getBlendConstants()); in draw()
213 vertexState = vertexProcessor.update(pipelineState, vertexShader, inputs); in draw()
214 setupState = setupProcessor.update(pipelineState, fragmentShader, vertexShader, attachments); in draw()
215 …pixelState = pixelProcessor.update(pipelineState, fragmentShader, vertexShader, attachments, hasOc… in draw()
217 …vertexRoutine = vertexProcessor.routine(vertexState, pipelineState.getPipelineLayout(), vertexShad… in draw()
219 …pixelRoutine = pixelProcessor.routine(pixelState, pipelineState.getPipelineLayout(), fragmentShade… in draw()
225 int ms = pipelineState.getSampleCount(); in draw()
228 if(pipelineState.isDrawTriangle(false)) in draw()
230 switch(pipelineState.getPolygonMode()) in draw()
[all …]
DVertexProcessor.cpp68 const VertexProcessor::State VertexProcessor::update(const vk::GraphicsState &pipelineState, const … in update() argument
73 state.pipelineLayoutIdentifier = pipelineState.getPipelineLayout()->identifier; in update()
74 state.robustBufferAccess = pipelineState.getRobustBufferAccess(); in update()
75 state.isPoint = pipelineState.getTopology() == VK_PRIMITIVE_TOPOLOGY_POINT_LIST; in update()
DSetupProcessor.hpp79 …State update(const vk::GraphicsState &pipelineState, const sw::SpirvShader *fragmentShader, const …
DVertexProcessor.hpp97 …const State update(const vk::GraphicsState &pipelineState, const sw::SpirvShader *vertexShader, co…
/external/skia/src/gpu/d3d/
DGrD3DPipeline.h16 static sk_sp<GrD3DPipeline> Make(gr_cp<ID3D12PipelineState> pipelineState) { in Make() argument
17 return sk_sp<GrD3DPipeline>(new GrD3DPipeline(std::move(pipelineState))); in Make()
34 GrD3DPipeline(gr_cp<ID3D12PipelineState> pipelineState) in GrD3DPipeline() argument
35 : fPipelineState(std::move(pipelineState)) { in GrD3DPipeline()
DGrD3DResourceProvider.cpp298 Entry(GrD3DGpu* gpu, std::unique_ptr<GrD3DPipelineState> pipelineState) in Entry()
299 : fGpu(gpu), fPipelineState(std::move(pipelineState)) {} in Entry()
352 std::unique_ptr<GrD3DPipelineState> pipelineState = in refPipelineState() local
354 if (!pipelineState) { in refPipelineState()
358 new Entry(fGpu, std::move(pipelineState)))); in refPipelineState()
DGrD3DPipelineStateBuilder.cpp555 gr_cp<ID3D12PipelineState> pipelineState; in create_pipeline_state() local
559 gpu->device()->CreateGraphicsPipelineState(&psoDesc, IID_PPV_ARGS(&pipelineState))); in create_pipeline_state()
562 return pipelineState; in create_pipeline_state()
671 gr_cp<ID3D12PipelineState> pipelineState = create_pipeline_state( in finalize() local
675 sk_sp<GrD3DPipeline> pipeline = GrD3DPipeline::Make(std::move(pipelineState)); in finalize()
726 gr_cp<ID3D12PipelineState> pipelineState; in MakeComputePipeline() local
730 gpu->device()->CreateComputePipelineState(&psoDesc, IID_PPV_ARGS(&pipelineState))); in MakeComputePipeline()
733 return GrD3DPipeline::Make(std::move(pipelineState)); in MakeComputePipeline()
/external/deqp/external/vulkancts/modules/vulkan/util/
DvktDrawUtil.cpp132 void ReferenceDrawContext::registerDrawObject(const PipelineState& pipelineState, std::shared_ptr<r… in registerDrawObject() argument
134 m_pipelineStates.push_back(pipelineState); in registerDrawObject()
387 void VulkanDrawContext::registerDrawObject(const PipelineState& pipelineState, const VulkanProgram&… in registerDrawObject() argument
417 …DE_ASSERT(drawCallData.topology != VK_PRIMITIVE_TOPOLOGY_PATCH_LIST || pipelineState.numPatchContr… in registerDrawObject()
427 pipelineState.depthClampEnable, // VkBool32 depthClampEnable; in registerDrawObject()
436 pipelineState.lineWidth, // float lineWidth; in registerDrawObject()
444 pipelineState.depthClipEnable, // VkBool32 depthClipEnable; in registerDrawObject()
446 if (pipelineState.explicitDepthClipEnable) in registerDrawObject()
455 pipelineState.sampleShadingEnable ? VK_TRUE : VK_FALSE, // VkBool32 sampleShadingEnable; in registerDrawObject()
456 pipelineState.sampleShadingEnable ? 1.0f : 0.0f, // float minSampleShading; in registerDrawObject()
[all …]
DvktDrawUtil.hpp114 void registerDrawObject (const PipelineState& pipelineState,
168 void registerDrawObject (const PipelineState& pipelineState,
/external/skqp/src/gpu/vk/
DGrVkPipelineStateCache.cpp26 Entry(GrVkGpu* gpu, GrVkPipelineState* pipelineState) in Entry()
28 , fPipelineState(pipelineState) {} in Entry()
114 GrVkPipelineState* pipelineState(GrVkPipelineStateBuilder::CreatePipelineState( in refPipelineState() local
117 if (nullptr == pipelineState) { in refPipelineState()
120 entry = fMap.insert(desc, std::unique_ptr<Entry>(new Entry(fGpu, pipelineState))); in refPipelineState()
DGrVkGpuCommandBuffer.cpp655 GrVkPipelineState* pipelineState = in prepareDrawState() local
662 if (!pipelineState) { in prepareDrawState()
663 return pipelineState; in prepareDrawState()
667 fLastPipelineState && fLastPipelineState != pipelineState && in prepareDrawState()
671 fLastPipelineState = pipelineState; in prepareDrawState()
673 pipelineState->bindPipeline(fGpu, cbInfo.currentCmdBuf()); in prepareDrawState()
675 pipelineState->setAndBindUniforms(fGpu, fRenderTarget, fOrigin, in prepareDrawState()
681 pipelineState->setAndBindTextures(fGpu, primProc, pipeline, primProcProxies, in prepareDrawState()
701 return pipelineState; in prepareDrawState()
761 GrVkPipelineState* pipelineState = this->prepareDrawState(primProc, pipeline, fixedDynamicState, in onDraw() local
[all …]
/external/skia/src/gpu/vk/
DGrVkPipelineStateCache.cpp29 Entry(GrVkGpu* gpu, GrVkPipelineState* pipelineState) in Entry()
31 , fPipelineState(pipelineState) {} in Entry()
123 GrVkPipelineState* pipelineState(GrVkPipelineStateBuilder::CreatePipelineState( in findOrCreatePipelineStateImpl() local
125 if (!pipelineState) { in findOrCreatePipelineStateImpl()
128 entry = fMap.insert(desc, std::make_unique<Entry>(fGpu, pipelineState)); in findOrCreatePipelineStateImpl()
/external/skia/src/gpu/mtl/
DGrMtlCommandBuffer.mm54 const GrMtlPipelineState* pipelineState) {
66 bool secondDoesntSampleFirst = (!pipelineState ||
67 pipelineState->doesntSampleAttachment(first)) &&
76 MTLRenderPassDescriptor* descriptor, const GrMtlPipelineState* pipelineState,
80 descriptor.colorAttachments[0], pipelineState) &&
82 descriptor.stencilAttachment, pipelineState)) {
DGrMtlResourceProvider.mm82 Entry(GrMtlPipelineState* pipelineState)
83 : fPipelineState(pipelineState) {}
134 // We've pre-compiled the MSL shaders but don't have the pipelineState
142 SkDEBUGFAIL("Couldn't create pipelineState from precompiled shaders");
152 GrMtlPipelineState* pipelineState(
154 if (!pipelineState) {
159 entry = fMap.insert(desc, std::unique_ptr<Entry>(new Entry(pipelineState)));
/external/skqp/src/gpu/mtl/
DGrMtlCopyPipelineState.mm26 id<MTLRenderPipelineState> pipelineState =
35 SkASSERT(pipelineState);
36 return new GrMtlCopyPipelineState(pipelineState, dstPixelFormat);
DGrMtlGpuCommandBuffer.mm134 GrMtlPipelineState* pipelineState =
138 if (!pipelineState) {
144 pipelineState->setData(fRenderTarget, fOrigin, primProc, pipeline, primProcProxies);
146 return pipelineState;
163 std::unique_ptr<GrMtlPipelineState> pipelineState(
165 if (!pipelineState) {
170 [fActiveRenderCmdEncoder setRenderPipelineState: pipelineState->mtlPipelineState()];
172 pipelineState->bind(fActiveRenderCmdEncoder);
173 pipelineState->setBlendConstants(fActiveRenderCmdEncoder, fRenderTarget->config(),
175 pipelineState->setDepthStencilState(fActiveRenderCmdEncoder);
DGrMtlCopyPipelineState.h26 GrMtlCopyPipelineState(id<MTLRenderPipelineState> pipelineState, in GrMtlCopyPipelineState() argument
28 : fPipelineState(pipelineState) in GrMtlCopyPipelineState()
DGrMtlPipelineState.h36 id<MTLRenderPipelineState> pipelineState,
DGrMtlCopyManager.mm224 bool GrMtlCopyManager::IsCompatible(const GrMtlCopyPipelineState* pipelineState,
226 return pipelineState->fPixelFormat == dstPixelFormat;
/external/deqp/external/vulkancts/modules/vulkan/clipping/
DvktClippingTests.cpp454 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits); in testPrimitivesInside() local
459 drawContext.registerDrawObject(pipelineState, vulkanProgram, drawCallData); in testPrimitivesInside()
510 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits); in testPrimitivesOutside() local
515 drawContext.registerDrawObject(pipelineState, vulkanProgram, drawCallData); in testPrimitivesOutside()
600 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits); in testPrimitivesDepthClamp() local
601 pipelineState.depthClampEnable = cases[caseNdx].depthClampEnable; in testPrimitivesDepthClamp()
606 drawContext.registerDrawObject(pipelineState, vulkanProgram, drawCallData); in testPrimitivesDepthClamp()
690 PipelineState pipelineState (context.getDeviceProperties().limits.subPixelPrecisionBits); in testPrimitivesDepthClip() local
691 pipelineState.depthClampEnable = false; in testPrimitivesDepthClip()
692 pipelineState.explicitDepthClipEnable = true; in testPrimitivesDepthClip()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/synchronization/
DvktSynchronizationSmokeTests.cpp674 VkGraphicsPipelineCreateInfo pipelineState; in generateWork() local
863 deMemset(&pipelineState, 0xcd, sizeof(pipelineState)); in generateWork()
864 pipelineState.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO; in generateWork()
865 pipelineState.pNext = DE_NULL; in generateWork()
866 pipelineState.flags = 0; in generateWork()
867 pipelineState.stageCount = DE_LENGTH_OF_ARRAY(shaderStageParams); in generateWork()
868 pipelineState.pStages = &shaderStageParams[0]; in generateWork()
869 pipelineState.pVertexInputState = &vertexInputState; in generateWork()
870 pipelineState.pInputAssemblyState = &inputAssemblyState; in generateWork()
871 pipelineState.pTessellationState = DE_NULL; in generateWork()
[all …]
/external/swiftshader/src/Vulkan/
DVkCommandBuffer.cpp150 executionState.pipelineState[pipelineBindPoint].pipeline = pipeline; in play()
175 auto const &pipelineState = executionState.pipelineState[VK_PIPELINE_BIND_POINT_COMPUTE]; in play() local
177 vk::ComputePipeline *pipeline = static_cast<vk::ComputePipeline *>(pipelineState.pipeline); in play()
180 pipelineState.descriptorSetObjects, in play()
181 pipelineState.descriptorSets, in play()
182 pipelineState.descriptorDynamicOffsets, in play()
210 auto const &pipelineState = executionState.pipelineState[VK_PIPELINE_BIND_POINT_COMPUTE]; in play() local
212 auto pipeline = static_cast<vk::ComputePipeline *>(pipelineState.pipeline); in play()
214 pipelineState.descriptorSetObjects, in play()
215 pipelineState.descriptorSets, in play()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/shaderrender/
DvktShaderRenderBuiltinVarTests.cpp154 PipelineState pipelineState (m_context.getDeviceProperties().limits.subPixelPrecisionBits); in iterate() local
158 dc.registerDrawObject(pipelineState, vulkanProgram, drawCallData); in iterate()
162 refDrawContext.registerDrawObject(pipelineState, vertexShader, fragmentShader, drawCallData); in iterate()
770 PipelineState pipelineState(m_context.getDeviceProperties().limits.subPixelPrecisionBits); in iterate() local
777 pipelineState.depthClampEnable = m_depthClampEnable; in iterate()
778 pipelineState.compareOp = rr::TESTFUNC_ALWAYS; in iterate()
779 pipelineState.depthTestEnable = true; in iterate()
780 pipelineState.depthWriteEnable = true; in iterate()
781 pipelineState.sampleShadingEnable = true; in iterate()
786 vulkanDrawContext.registerDrawObject(pipelineState, vulkanProgram, drawCallData); in iterate()
[all …]

12