Home
last modified time | relevance | path

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

1234

/external/skia/src/gpu/
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()
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 …]
DGrProgramDesc.cpp140 const GrProgramInfo& programInfo, in gen_key() argument
142 gen_geomproc_key(programInfo.geomProc(), caps, b); in gen_key()
144 const GrPipeline& pipeline = programInfo.pipeline(); in gen_key()
156 b->addBits(2, GrGLSLFragmentShaderBuilder::KeyForSurfaceOrigin(programInfo.origin()), "origin"); in gen_key()
157 b->addBits(1, static_cast<uint32_t>(programInfo.requestedFeatures()), "requestedFeatures"); in gen_key()
161 b->addBool((programInfo.primitiveType() == GrPrimitiveType::kPoints), "isPoints"); in gen_key()
169 const GrProgramInfo& programInfo, in Build() argument
173 gen_key(&b, programInfo, caps); in Build()
177 SkString GrProgramDesc::Describe(const GrProgramInfo& programInfo, in Describe() argument
181 gen_key(&b, programInfo, caps); in Describe()
DGrOpFlushState.h195 void bindPipelineAndScissorClip(const GrProgramInfo& programInfo, const SkRect& drawBounds) { in bindPipelineAndScissorClip() argument
196 SkASSERT((programInfo.pipeline().isScissorTestEnabled()) == in bindPipelineAndScissorClip()
198 this->bindPipeline(programInfo, drawBounds); in bindPipelineAndScissorClip()
199 if (programInfo.pipeline().isScissorTestEnabled()) { in bindPipelineAndScissorClip()
218 void bindPipeline(const GrProgramInfo& programInfo, const SkRect& drawBounds) { in bindPipeline() argument
219 fOpsRenderPass->bindPipeline(programInfo, drawBounds); in bindPipeline()
DGrOpFlushState.cpp54 GrProgramInfo programInfo(this->writeView(), in executeDrawsAndUploadsForMeshDrawOp() local
63 this->bindPipelineAndScissorClip(programInfo, chainBounds); in executeDrawsAndUploadsForMeshDrawOp()
64 this->bindTextures(programInfo.geomProc(), fCurrDraw->fGeomProcProxies, in executeDrawsAndUploadsForMeshDrawOp()
65 programInfo.pipeline()); in executeDrawsAndUploadsForMeshDrawOp()
/external/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()
111 programInfo.geomProc()); in updateUniforms()
113 for (int i = 0; i < programInfo.pipeline().numFragmentProcessors(); ++i) { in updateUniforms()
114 auto& fp = programInfo.pipeline().getFragmentProcessor(i); in updateUniforms()
120 const GrXferProcessor& xp = programInfo.pipeline().getXferProcessor(); in updateUniforms()
122 GrTexture* dstTexture = programInfo.pipeline().peekDstTexture(&offset); in updateUniforms()
/external/skia/src/gpu/vk/
DGrVkPipelineStateCache.cpp75 const GrProgramInfo& programInfo, in findOrCreatePipelineState() argument
79 if (programInfo.isStencilEnabled()) { in findOrCreatePipelineState()
82 SkASSERT(renderTarget->getStencilAttachment()->numSamples() == 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.cpp77 const GrProgramInfo& programInfo, in setAndBindUniforms() argument
79 this->setRenderTargetState(colorAttachmentDimensions, programInfo.origin()); in setAndBindUniforms()
81 fGeometryProcessor->setData(fDataManager, *gpu->caps()->shaderCaps(), programInfo.geomProc()); in setAndBindUniforms()
82 for (int i = 0; i < programInfo.pipeline().numFragmentProcessors(); ++i) { in setAndBindUniforms()
83 auto& fp = programInfo.pipeline().getFragmentProcessor(i); in setAndBindUniforms()
91 GrTexture* dstTexture = programInfo.pipeline().peekDstTexture(&offset); in setAndBindUniforms()
93 fXferProcessor->setData(fDataManager, programInfo.pipeline().getXferProcessor(), in setAndBindUniforms()
DGrVkRenderTarget.cpp371 const GrProgramInfo& programInfo, in ReconstructAttachmentsDescriptor() argument
375 SkAssertResult(programInfo.backendFormat().asVkFormat(&format)); in ReconstructAttachmentsDescriptor()
378 desc->fColor.fSamples = programInfo.numSamples(); in ReconstructAttachmentsDescriptor()
382 if (programInfo.targetSupportsVkResolveLoad() && vkCaps.preferDiscardableMSAAAttachment()) { in ReconstructAttachmentsDescriptor()
389 SkASSERT(!programInfo.isStencilEnabled() || programInfo.needsStencil()); in ReconstructAttachmentsDescriptor()
390 if (programInfo.needsStencil()) { in ReconstructAttachmentsDescriptor()
393 desc->fStencil.fSamples = programInfo.numSamples(); in ReconstructAttachmentsDescriptor()
DGrVkPipeline.cpp608 const GrProgramInfo& programInfo, in Make() argument
615 const GrGeometryProcessor& geomProc = programInfo.geomProc(); in Make()
616 const GrPipeline& pipeline = programInfo.pipeline(); in Make()
621 programInfo.primitiveType(), in Make()
622 programInfo.origin(), in Make()
623 programInfo.nonGLStencilSettings(), in Make()
624 programInfo.numSamples(), in Make()
/external/skia/src/gpu/dawn/
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()
DGrDawnProgramBuilder.cpp203 const GrProgramInfo& programInfo, in create_depth_stencil_state() argument
205 GrStencilSettings stencilSettings = programInfo.nonGLStencilSettings(); in create_depth_stencil_state()
206 GrSurfaceOrigin origin = programInfo.origin(); in create_depth_stencil_state()
253 const GrProgramInfo& programInfo, in Build() argument
260 GrDawnProgramBuilder builder(gpu, programInfo, desc); in Build()
273 bool flipY = programInfo.origin() != kTopLeft_GrSurfaceOrigin; in Build()
329 const GrPipeline& pipeline = programInfo.pipeline(); in Build()
333 if (programInfo.isStencilEnabled()) { in Build()
337 depthStencilState = create_depth_stencil_state(programInfo, depthStencilFormat); in Build()
342 const GrGeometryProcessor& geomProc = programInfo.geomProc(); in Build()
[all …]
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()
DGrDawnOpsRenderPass.h37 void applyState(GrDawnProgram*, const GrProgramInfo& programInfo);
40 bool onBindPipeline(const GrProgramInfo& programInfo, const SkRect& drawBounds) override;
/external/skia/src/gpu/d3d/
DGrD3DPipelineState.cpp46 const GrProgramInfo& programInfo) { in setAndBindConstants() argument
47 this->setRenderTargetState(renderTarget, programInfo.origin()); in setAndBindConstants()
49 fGeometryProcessor->setData(fDataManager, *gpu->caps()->shaderCaps(), programInfo.geomProc()); in setAndBindConstants()
50 for (int i = 0; i < programInfo.pipeline().numFragmentProcessors(); ++i) { in setAndBindConstants()
51 auto& fp = programInfo.pipeline().getFragmentProcessor(i); in setAndBindConstants()
59 GrTexture* dstTexture = programInfo.pipeline().peekDstTexture(&offset); in setAndBindConstants()
61 fXferProcessor->setData(fDataManager, programInfo.pipeline().getXferProcessor(), in setAndBindConstants()
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()
453 static void fill_in_depth_stencil_state(const GrProgramInfo& programInfo, in fill_in_depth_stencil_state() argument
455 GrStencilSettings stencilSettings = programInfo.nonGLStencilSettings(); in fill_in_depth_stencil_state()
456 GrSurfaceOrigin origin = programInfo.origin(); in fill_in_depth_stencil_state()
501 GrD3DGpu* gpu, const GrProgramInfo& programInfo, const sk_sp<GrD3DRootSignature>& rootSig, in create_pipeline_state() argument
521 fill_in_blend_state(programInfo.pipeline(), &psoDesc.BlendState); in create_pipeline_state()
524 fill_in_rasterizer_state(programInfo.pipeline(), gpu->caps(), &psoDesc.RasterizerState); in create_pipeline_state()
[all …]
/external/angle/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()
/external/skia/src/gpu/mtl/
DGrMtlResourceProvider.mm34 const GrProgramInfo& programInfo,
36 return fPipelineStateCache->refPipelineState(programDesc, programInfo, stat);
108 const GrProgramInfo& programInfo,
115 auto tmp = this->onRefPipelineState(desc, programInfo, &stat);
123 return this->onRefPipelineState(desc, programInfo, stat);
129 const GrProgramInfo& programInfo,
138 GrMtlPipelineStateBuilder::CreatePipelineState(fGpu, desc, programInfo,
153 GrMtlPipelineStateBuilder::CreatePipelineState(fGpu, desc, programInfo));
DGrMtlPipelineState.mm57 const GrProgramInfo& programInfo) {
58 this->setRenderTargetState(renderTarget, programInfo.origin());
59 fGeometryProcessor->setData(fDataManager, *fGpu->caps()->shaderCaps(), programInfo.geomProc());
61 for (int i = 0; i < programInfo.pipeline().numFragmentProcessors(); ++i) {
62 auto& fp = programInfo.pipeline().getFragmentProcessor(i);
70 GrTexture* dstTexture = programInfo.pipeline().peekDstTexture(&offset);
71 fXferProcessor->setData(fDataManager, programInfo.pipeline().getXferProcessor(), dstTexture,
78 if (programInfo.isStencilEnabled()) {
84 fStencil = programInfo.nonGLStencilSettings();
DGrMtlOpsRenderPass.mm72 bool GrMtlOpsRenderPass::onBindPipeline(const GrProgramInfo& programInfo,
75 GrProgramDesc programDesc = caps.makeDesc(fRenderTarget, programInfo,
82 programDesc, programInfo);
87 fActivePipelineState->setData(fRenderTarget, programInfo);
88 fCurrentVertexStride = programInfo.geomProc().vertexStride();
97 programInfo.pipeline().writeSwizzle(),
98 programInfo.pipeline().getXferProcessor());
99 if (this->gpu()->caps()->wireframeMode() || programInfo.pipeline().isWireframe()) {
105 if (!programInfo.pipeline().isScissorTestEnabled()) {
113 fActivePrimitiveType = gr_to_mtl_primitive(programInfo.primitiveType());
/external/deqp/external/openglcts/modules/gl/
Dgl3cGPUShader5Tests.hpp67 struct programInfo struct in gl3cts::Utils
69 programInfo(deqp::Context& context);
70 ~programInfo();
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);
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 …]
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()
552 Utils::programInfo program(m_context); in executeTestCase()
816 Utils::programInfo program(m_context); in execute()
1082 Utils::programInfo program(m_context); in execute()

1234