Home
last modified time | relevance | path

Searched refs:programInfo (Results 1 – 25 of 82) sorted by relevance

1234

/third_party/skia/src/gpu/vk/
DGrVkPipelineStateCache.cpp74 const GrProgramInfo& programInfo, in findOrCreatePipelineState() argument
78 if (programInfo.isStencilEnabled()) { in findOrCreatePipelineState()
79 SkASSERT(renderTarget->getStencilAttachment(programInfo.numSamples() > 1)); in findOrCreatePipelineState()
80 SkASSERT(renderTarget->numStencilBits(programInfo.numSamples() > 1) == 8); in findOrCreatePipelineState()
81 SkASSERT(renderTarget->getStencilAttachment(programInfo.numSamples() > 1)->numSamples() == in findOrCreatePipelineState()
82 programInfo.numSamples()); in findOrCreatePipelineState()
90 GrProgramDesc desc = fGpu->caps()->makeDesc(renderTarget, programInfo, flags); in findOrCreatePipelineState()
97 auto tmp = this->findOrCreatePipelineStateImpl(desc, programInfo, compatibleRenderPass, in findOrCreatePipelineState()
110 const GrProgramInfo& programInfo, in findOrCreatePipelineStateImpl() argument
124 fGpu, desc, programInfo, compatibleRenderPass, overrideSubpassForResolveLoad)); in findOrCreatePipelineStateImpl()
DGrVkPipelineState.cpp78 const GrProgramInfo& programInfo, in setAndBindUniforms() argument
80 this->setRenderTargetState(colorAttachmentDimensions, programInfo.origin()); in setAndBindUniforms()
82 fGPImpl->setData(fDataManager, *gpu->caps()->shaderCaps(), programInfo.geomProc()); in setAndBindUniforms()
84 for (int i = 0; i < programInfo.pipeline().numFragmentProcessors(); ++i) { in setAndBindUniforms()
85 const auto& fp = programInfo.pipeline().getFragmentProcessor(i); in setAndBindUniforms()
92 programInfo.pipeline().setDstTextureUniforms(fDataManager, &fBuiltinUniformHandles); in setAndBindUniforms()
93 fXPImpl->setData(fDataManager, programInfo.pipeline().getXferProcessor()); in setAndBindUniforms()
DGrVkRenderTarget.cpp410 const GrProgramInfo& programInfo, in ReconstructAttachmentsDescriptor() argument
414 SkAssertResult(programInfo.backendFormat().asVkFormat(&format)); in ReconstructAttachmentsDescriptor()
417 desc->fColor.fSamples = programInfo.numSamples(); in ReconstructAttachmentsDescriptor()
421 if (vkCaps.programInfoWillUseDiscardableMSAA(programInfo)) { in ReconstructAttachmentsDescriptor()
428 SkASSERT(!programInfo.isStencilEnabled() || programInfo.needsStencil()); in ReconstructAttachmentsDescriptor()
429 if (programInfo.needsStencil()) { in ReconstructAttachmentsDescriptor()
432 desc->fStencil.fSamples = programInfo.numSamples(); in ReconstructAttachmentsDescriptor()
DGrVkPipeline.cpp576 const GrProgramInfo& programInfo, in Make() argument
583 const GrGeometryProcessor& geomProc = programInfo.geomProc(); in Make()
584 const GrPipeline& pipeline = programInfo.pipeline(); in Make()
589 programInfo.primitiveType(), in Make()
590 programInfo.origin(), in Make()
591 programInfo.nonGLStencilSettings(), in Make()
592 programInfo.numSamples(), in Make()
593 programInfo.numSamples() > 1, in Make()
DGrVkCaps.cpp1694 bool GrVkCaps::programInfoWillUseDiscardableMSAA(const GrProgramInfo& programInfo) const { in programInfoWillUseDiscardableMSAA()
1695 return programInfo.targetHasVkResolveAttachmentWithInput() && in programInfoWillUseDiscardableMSAA()
1696 programInfo.numSamples() > 1 && in programInfoWillUseDiscardableMSAA()
1697 ((programInfo.targetsNumSamples() > 1 && this->preferDiscardableMSAAAttachment()) || in programInfoWillUseDiscardableMSAA()
1698 (programInfo.targetsNumSamples() == 1 && this->supportsDiscardableMSAAForDMSAA())); in programInfoWillUseDiscardableMSAA()
1877 const GrProgramInfo& programInfo, in makeDesc() argument
1880 GrProgramDesc::Build(&desc, programInfo, *this); in makeDesc()
1892 if (programInfo.renderPassBarriers() & GrXferBarrierFlags::kBlend) { in makeDesc()
1895 if (programInfo.renderPassBarriers() & GrXferBarrierFlags::kTexture) { in makeDesc()
1899 bool needsResolve = this->programInfoWillUseDiscardableMSAA(programInfo); in makeDesc()
[all …]
/third_party/skia/src/gpu/
DGrOpsRenderPass.cpp62 void GrOpsRenderPass::bindPipeline(const GrProgramInfo& programInfo, const SkRect& drawBounds) { in bindPipeline() argument
66 SkASSERT(programInfo.origin() == fOrigin); in bindPipeline()
67 if (programInfo.geomProc().hasInstanceAttributes()) { in bindPipeline()
70 if (programInfo.pipeline().usesConservativeRaster()) { in bindPipeline()
73 if (programInfo.pipeline().isWireframe()) { in bindPipeline()
77 programInfo.isStencilEnabled()) { in bindPipeline()
78 const GrUserStencilSettings* stencil = programInfo.userStencilSettings(); in bindPipeline()
79 if (stencil->isTwoSided(programInfo.pipeline().hasStencilClip())) { in bindPipeline()
85 if (GrPrimitiveType::kPatches == programInfo.primitiveType()) { in bindPipeline()
88 programInfo.checkAllInstantiated(); in bindPipeline()
[all …]
DGrDDLContext.cpp36 void recordProgramInfo(const GrProgramInfo* programInfo) final { in recordProgramInfo() argument
37 if (!programInfo) { in recordProgramInfo()
51 GrProgramDesc desc = caps->makeDesc(nullptr, *programInfo); in recordProgramInfo()
56 fProgramInfoMap.add(desc, programInfo); in recordProgramInfo()
79 void add(CacheKey& desc, const GrProgramInfo* programInfo) { in add() argument
87 fMap.insert(desc, programInfo); in add()
91 fMap.foreach([dst](CacheKey* programDesc, CacheValue* programInfo) { in toArray() argument
95 *programInfo); in toArray()
DGrProgramDesc.cpp145 const GrProgramInfo& programInfo, in gen_key() argument
147 gen_geomproc_key(programInfo.geomProc(), caps, b); in gen_key()
149 const GrPipeline& pipeline = programInfo.pipeline(); in gen_key()
162 b->addBool((programInfo.primitiveType() == GrPrimitiveType::kPoints), "isPoints"); in gen_key()
170 const GrProgramInfo& programInfo, in Build() argument
174 gen_key(&b, programInfo, caps); in Build()
178 SkString GrProgramDesc::Describe(const GrProgramInfo& programInfo, in Describe() argument
182 gen_key(&b, programInfo, caps); in Describe()
DGrOpFlushState.h194 void bindPipelineAndScissorClip(const GrProgramInfo& programInfo, const SkRect& drawBounds) { in bindPipelineAndScissorClip() argument
195 SkASSERT((programInfo.pipeline().isScissorTestEnabled()) == in bindPipelineAndScissorClip()
197 this->bindPipeline(programInfo, drawBounds); in bindPipelineAndScissorClip()
198 if (programInfo.pipeline().isScissorTestEnabled()) { in bindPipelineAndScissorClip()
217 void bindPipeline(const GrProgramInfo& programInfo, const SkRect& drawBounds) { in bindPipeline() argument
218 fOpsRenderPass->bindPipeline(programInfo, drawBounds); in bindPipeline()
DGrOpFlushState.cpp54 GrProgramInfo programInfo(this->caps(), in executeDrawsAndUploadsForMeshDrawOp() local
65 this->bindPipelineAndScissorClip(programInfo, chainBounds); in executeDrawsAndUploadsForMeshDrawOp()
66 this->bindTextures(programInfo.geomProc(), fCurrDraw->fGeomProcProxies, in executeDrawsAndUploadsForMeshDrawOp()
67 programInfo.pipeline()); in executeDrawsAndUploadsForMeshDrawOp()
/third_party/skia/src/gpu/gl/
DGrGLGpuProgramCache.cpp52 const GrProgramInfo& programInfo) { in findOrCreateProgram() argument
55 GrProgramDesc desc = caps->makeDesc(/*renderTarget*/nullptr, programInfo); in findOrCreateProgram()
62 sk_sp<GrGLProgram> tmp = this->findOrCreateProgramImpl(dContext, desc, programInfo, &stat); in findOrCreateProgram()
74 const GrProgramInfo& programInfo, in findOrCreateProgram() argument
76 sk_sp<GrGLProgram> tmp = this->findOrCreateProgramImpl(dContext, desc, programInfo, stat); in findOrCreateProgram()
88 const GrProgramInfo& programInfo, in findOrCreateProgramImpl() argument
96 (*entry)->fProgram = GrGLProgramBuilder::CreateProgram(dContext, desc, programInfo, in findOrCreateProgramImpl()
108 sk_sp<GrGLProgram> program = GrGLProgramBuilder::CreateProgram(dContext, desc, programInfo); in findOrCreateProgramImpl()
DGrGLProgram.cpp100 const GrProgramInfo& programInfo) { in updateUniforms() argument
101 this->setRenderTargetState(renderTarget, programInfo.origin(), programInfo.geomProc()); in updateUniforms()
109 fGPImpl->setData(fProgramDataManager, *fGpu->caps()->shaderCaps(), programInfo.geomProc()); in updateUniforms()
111 for (int i = 0; i < programInfo.pipeline().numFragmentProcessors(); ++i) { in updateUniforms()
112 const auto& fp = programInfo.pipeline().getFragmentProcessor(i); in updateUniforms()
119 programInfo.pipeline().setDstTextureUniforms(fProgramDataManager, &fBuiltinUniformHandles); in updateUniforms()
120 fXPImpl->setData(fProgramDataManager, programInfo.pipeline().getXferProcessor()); in updateUniforms()
/third_party/skia/src/gpu/dawn/
DGrDawnProgramBuilder.cpp204 const GrProgramInfo& programInfo, in create_depth_stencil_state() argument
206 GrStencilSettings stencilSettings = programInfo.nonGLStencilSettings(); in create_depth_stencil_state()
207 GrSurfaceOrigin origin = programInfo.origin(); in create_depth_stencil_state()
254 const GrProgramInfo& programInfo, in Build() argument
261 GrDawnProgramBuilder builder(gpu, programInfo, desc); in Build()
269 bool flipY = programInfo.origin() != kTopLeft_GrSurfaceOrigin; in Build()
325 const GrPipeline& pipeline = programInfo.pipeline(); in Build()
329 if (programInfo.isStencilEnabled()) { in Build()
333 depthStencilState = create_depth_stencil_state(programInfo, depthStencilFormat); in Build()
338 const GrGeometryProcessor& geomProc = programInfo.geomProc(); in Build()
[all …]
DGrDawnOpsRenderPass.cpp122 void GrDawnOpsRenderPass::applyState(GrDawnProgram* program, const GrProgramInfo& programInfo) { in applyState() argument
123 auto bindGroup = program->setUniformData(fGpu, fRenderTarget, programInfo); in applyState()
126 if (programInfo.isStencilEnabled()) { in applyState()
127 fPassEncoder.SetStencilReference(programInfo.userStencilSettings()->fCCWFace.fRef); in applyState()
129 const GrPipeline& pipeline = programInfo.pipeline(); in applyState()
134 if (!programInfo.pipeline().isScissorTestEnabled()) { in applyState()
145 bool GrDawnOpsRenderPass::onBindPipeline(const GrProgramInfo& programInfo, in onBindPipeline() argument
147 fCurrentProgram = fGpu->getOrCreateRenderPipeline(fRenderTarget, programInfo); in onBindPipeline()
151 this->applyState(fCurrentProgram.get(), programInfo); in onBindPipeline()
DGrDawnCaps.cpp168 const GrProgramInfo& programInfo, in makeDesc() argument
172 GrProgramDesc::Build(&desc, programInfo, *this); in makeDesc()
175 if (!programInfo.backendFormat().asDawnFormat(&format)) { in makeDesc()
182 GrStencilSettings stencil = programInfo.nonGLStencilSettings(); in makeDesc()
190 b.add32(get_blend_info_key(programInfo.pipeline())); in makeDesc()
191 b.add32(programInfo.primitiveTypeKey()); in makeDesc()
/third_party/skia/src/gpu/d3d/
DGrD3DPipelineStateBuilder.cpp35 const GrProgramInfo& programInfo) { in MakePipelineState() argument
41 GrD3DPipelineStateBuilder builder(gpu, renderTarget, desc, programInfo); in MakePipelineState()
53 const GrProgramInfo& programInfo) in GrD3DPipelineStateBuilder() argument
54 : INHERITED(desc, programInfo) in GrD3DPipelineStateBuilder()
450 static void fill_in_depth_stencil_state(const GrProgramInfo& programInfo, in fill_in_depth_stencil_state() argument
452 GrStencilSettings stencilSettings = programInfo.nonGLStencilSettings(); in fill_in_depth_stencil_state()
453 GrSurfaceOrigin origin = programInfo.origin(); in fill_in_depth_stencil_state()
498 GrD3DGpu* gpu, const GrProgramInfo& programInfo, const sk_sp<GrD3DRootSignature>& rootSig, in create_pipeline_state() argument
513 fill_in_blend_state(programInfo.pipeline(), &psoDesc.BlendState); in create_pipeline_state()
516 fill_in_rasterizer_state(programInfo.pipeline(), programInfo.numSamples() > 1, gpu->caps(), in create_pipeline_state()
[all …]
DGrD3DPipelineState.cpp48 const GrProgramInfo& programInfo) { in setAndBindConstants() argument
49 this->setRenderTargetState(renderTarget, programInfo.origin()); in setAndBindConstants()
51 fGPImpl->setData(fDataManager, *gpu->caps()->shaderCaps(), programInfo.geomProc()); in setAndBindConstants()
53 for (int i = 0; i < programInfo.pipeline().numFragmentProcessors(); ++i) { in setAndBindConstants()
54 const auto& fp = programInfo.pipeline().getFragmentProcessor(i); in setAndBindConstants()
61 programInfo.pipeline().setDstTextureUniforms(fDataManager, &fBuiltinUniformHandles); in setAndBindConstants()
62 fXPImpl->setData(fDataManager, programInfo.pipeline().getXferProcessor()); in setAndBindConstants()
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
DProgramVk.h148 ProgramInfo *programInfo, in initGraphicsShaderProgram() argument
151 return initProgram(contextVk, shaderType, isLastPreFragmentStage, optionBits, programInfo, in initGraphicsShaderProgram()
157 ProgramInfo *programInfo, in initComputeProgram() argument
161 return initProgram(contextVk, gl::ShaderType::Compute, false, optionBits, programInfo, in initComputeProgram()
196 ProgramInfo *programInfo, in initProgram() argument
203 if (!programInfo->valid(shaderType)) in initProgram()
207 ANGLE_TRY(programInfo->initProgram(contextVk, shaderType, isLastPreFragmentStage, in initProgram()
211 ASSERT(programInfo->valid(shaderType)); in initProgram()
/third_party/skia/src/gpu/mtl/
DGrMtlPipelineState.mm63 const GrProgramInfo& programInfo) {
66 this->setRenderTargetState(colorAttachmentDimensions, programInfo.origin());
67 fGPImpl->setData(fDataManager, *fGpu->caps()->shaderCaps(), programInfo.geomProc());
69 for (int i = 0; i < programInfo.pipeline().numFragmentProcessors(); ++i) {
70 const auto& fp = programInfo.pipeline().getFragmentProcessor(i);
77 programInfo.pipeline().setDstTextureUniforms(fDataManager, &fBuiltinUniformHandles);
78 fXPImpl->setData(fDataManager, programInfo.pipeline().getXferProcessor());
83 if (programInfo.isStencilEnabled()) {
90 fStencil = programInfo.nonGLStencilSettings();
DGrMtlResourceProvider.mm35 const GrProgramInfo& programInfo,
37 return fPipelineStateCache->refPipelineState(programDesc, programInfo, stat);
199 const GrProgramInfo& programInfo,
206 auto tmp = this->onRefPipelineState(desc, programInfo, &stat);
214 return this->onRefPipelineState(desc, programInfo, statPtr);
220 const GrProgramInfo& programInfo,
230 GrMtlPipelineStateBuilder::CreatePipelineState(fGpu, desc, programInfo,
246 GrMtlPipelineStateBuilder::CreatePipelineState(fGpu, desc, programInfo));
DGrMtlOpsRenderPass.mm67 bool GrMtlOpsRenderPass::onBindPipeline(const GrProgramInfo& programInfo,
70 GrProgramDesc programDesc = caps.makeDesc(fRenderTarget, programInfo,
77 programDesc, programInfo);
82 fActivePipelineState->setData(fFramebuffer.get(), programInfo);
83 fCurrentVertexStride = programInfo.geomProc().vertexStride();
105 programInfo.pipeline().writeSwizzle(),
106 programInfo.pipeline().getXferProcessor());
107 if (this->gpu()->caps()->wireframeMode() || programInfo.pipeline().isWireframe()) {
113 if (!programInfo.pipeline().isScissorTestEnabled()) {
122 fActivePrimitiveType = gr_to_mtl_primitive(programInfo.primitiveType());
/third_party/vk-gl-cts/external/openglcts/modules/gl/
Dgl4cGPUShaderFP64Tests.hpp48 struct programInfo struct in gl4cts::Utils
50 programInfo(deqp::Context& context);
51 ~programInfo();
493 Utils::programInfo& out_program_info) const;
509 const Utils::programInfo& program_info) const;
702 struct programInfo struct in gl4cts::GPUShaderFP64Test3
705 programInfo();
738 const programInfo& getProgramInfo(uniformDataLayout uniform_data_layout) const;
741 void prepareProgram(programInfo& program_info, uniformDataLayout uniform_data_layout) const;
743 bool prepareUniformBuffer(const programInfo& program_info, bool verify_offsets) const;
[all …]
Dgl3cTextureSwizzleTests.hpp48 struct programInfo struct in gl3cts::TextureSwizzle::Utils
50 programInfo(deqp::Context& context);
51 ~programInfo();
324 void prepareProgram(size_t format_idx, Utils::programInfo& program);
Dgl3cGPUShader5Tests.cpp53 Utils::programInfo::programInfo(deqp::Context& context) in programInfo() function in gl3cts::Utils::programInfo
62 Utils::programInfo::~programInfo() in ~programInfo()
98 void Utils::programInfo::build(const glw::GLchar* fragment_shader_code, const glw::GLchar* vertex_s… in build()
133 void Utils::programInfo::compile(glw::GLuint shader_id, const glw::GLchar* shader_code) const in compile()
182 void Utils::programInfo::link() const in link()
241 void Utils::programInfo::setUniform(Utils::_variable_type type, const glw::GLchar* name, const glw:… in setUniform()
551 Utils::programInfo program(m_context); in executeTestCase()
815 Utils::programInfo program(m_context); in execute()
1081 Utils::programInfo program(m_context); in execute()
Dgl3cGPUShader5Tests.hpp67 struct programInfo struct in gl3cts::Utils
69 programInfo(deqp::Context& context);
70 ~programInfo();

1234