Home
last modified time | relevance | path

Searched refs:shaderCaps (Results 1 – 25 of 177) sorted by relevance

12345678

/external/skqp/src/gpu/gl/
DGrGLCaps.cpp316 GrShaderCaps* shaderCaps = fShaderCaps.get(); in init() local
318 shaderCaps->fPathRenderingSupport = this->hasPathRenderingSupport(ctxInfo, gli); in init()
321 shaderCaps->fPathRenderingSupport = false; in init()
327 shaderCaps->fDualSourceBlendingSupport = (ctxInfo.version() >= GR_GL_VER(3, 3) || in init()
331 shaderCaps->fShaderDerivativeSupport = true; in init()
334 shaderCaps->fGeometryShaderSupport = ctxInfo.version() >= GR_GL_VER(3, 2) && in init()
336 if (shaderCaps->fGeometryShaderSupport) { in init()
338 shaderCaps->fGSInvocationsSupport = true; in init()
340 shaderCaps->fGSInvocationsSupport = true; in init()
341 shaderCaps->fGSInvocationsExtensionString = "GL_ARB_gpu_shader5"; in init()
[all …]
/external/skqp/src/gpu/
DGrProgramDesc.cpp121 const GrShaderCaps& shaderCaps, in gen_meta_key() argument
133 add_sampler_keys(b, fp, gpu, shaderCaps); in gen_meta_key()
142 const GrShaderCaps& shaderCaps, in gen_meta_key() argument
154 add_sampler_keys(b, pp, shaderCaps); in gen_meta_key()
163 const GrShaderCaps& shaderCaps, in gen_meta_key() argument
181 const GrShaderCaps& shaderCaps, in gen_frag_proc_and_meta_keys() argument
184 if (!gen_frag_proc_and_meta_keys(primProc, fp.childProcessor(i), gpu, shaderCaps, b)) { in gen_frag_proc_and_meta_keys()
189 fp.getGLSLProcessorKey(shaderCaps, b); in gen_frag_proc_and_meta_keys()
191 return gen_meta_key(fp, gpu, shaderCaps, primProc.getTransformKey(fp.coordTransforms(), in gen_frag_proc_and_meta_keys()
206 const GrShaderCaps& shaderCaps = *gpu->caps()->shaderCaps(); in Build() local
[all …]
DGrShaderVar.cpp55 void GrShaderVar::appendDecl(const GrShaderCaps* shaderCaps, SkString* out) const { in appendDecl() argument
67 if (shaderCaps->usesPrecisionModifiers() && GrSLTypeAcceptsPrecision(effectiveType)) { in appendDecl()
74 GrGLSLTypeString(shaderCaps, effectiveType), in appendDecl()
79 GrGLSLTypeString(shaderCaps, effectiveType), in appendDecl()
85 GrGLSLTypeString(shaderCaps, effectiveType), in appendDecl()
DGrDefaultGeoProcFactory.cpp42 static sk_sp<GrGeometryProcessor> Make(const GrShaderCaps* shaderCaps, in Make() argument
53 shaderCaps, gpTypeFlags, color, std::move(colorSpaceXform), viewMatrix, localMatrix, in Make()
323 DefaultGeoProc(const GrShaderCaps* shaderCaps, in DefaultGeoProc() argument
360 if (!shaderCaps->unsignedSupport()) { in DefaultGeoProc()
428 return DefaultGeoProc::Make(d->caps()->shaderCaps(), in TestCreate()
441 sk_sp<GrGeometryProcessor> GrDefaultGeoProcFactory::Make(const GrShaderCaps* shaderCaps, in Make() argument
464 return DefaultGeoProc::Make(shaderCaps, in Make()
477 const GrShaderCaps* shaderCaps, in MakeForDeviceSpace() argument
495 return Make(shaderCaps, color, coverage, inverted, SkMatrix::I()); in MakeForDeviceSpace()
498 sk_sp<GrGeometryProcessor> GrDefaultGeoProcFactory::MakeWithBones(const GrShaderCaps* shaderCaps, in MakeWithBones() argument
[all …]
/external/skqp/src/gpu/mtl/
DGrMtlCaps.mm145 if (this->shaderCaps()->configOutputSwizzle(srcConfig) !=
146 this->shaderCaps()->configOutputSwizzle(dstConfig)) {
159 if (this->shaderCaps()->configOutputSwizzle(srcConfig) !=
160 this->shaderCaps()->configOutputSwizzle(dstConfig)) {
296 GrShaderCaps* shaderCaps = fShaderCaps.get();
302 shaderCaps->fConfigTextureSwizzle[i] = GrSwizzle::RRRR();
303 shaderCaps->fConfigOutputSwizzle[i] = GrSwizzle::AAAA();
306 shaderCaps->fConfigTextureSwizzle[i] = GrSwizzle::RRRA();
308 shaderCaps->fConfigTextureSwizzle[i] = GrSwizzle::RGBA();
315 shaderCaps->fUsesPrecisionModifiers = true;
[all …]
/external/skqp/src/gpu/vk/
DGrVkCaps.cpp129 if (this->shaderCaps()->configOutputSwizzle(srcConfig) != in canCopyImage()
130 this->shaderCaps()->configOutputSwizzle(dstConfig)) { in canCopyImage()
146 if (this->shaderCaps()->configOutputSwizzle(srcConfig) != in canCopyAsBlit()
147 this->shaderCaps()->configOutputSwizzle(dstConfig)) { in canCopyAsBlit()
189 if (this->shaderCaps()->configOutputSwizzle(srcConfig) != in canCopyAsDraw()
190 this->shaderCaps()->configOutputSwizzle(dstConfig)) { in canCopyAsDraw()
536 GrShaderCaps* shaderCaps = fShaderCaps.get(); in initShaderCaps() local
537 shaderCaps->fVersionDeclString = "#version 330\n"; in initShaderCaps()
546 shaderCaps->fConfigTextureSwizzle[i] = GrSwizzle::RRRR(); in initShaderCaps()
547 shaderCaps->fConfigOutputSwizzle[i] = GrSwizzle::AAAA(); in initShaderCaps()
[all …]
/external/skia/src/gpu/gl/
DGrGLCaps.cpp329 GrShaderCaps* shaderCaps = fShaderCaps.get(); in init() local
333 shaderCaps->fDualSourceBlendingSupport = in init()
338 shaderCaps->fShaderDerivativeSupport = true; in init()
341 shaderCaps->fGeometryShaderSupport = version >= GR_GL_VER(3, 2) && in init()
343 if (shaderCaps->fGeometryShaderSupport) { in init()
345 shaderCaps->fGSInvocationsSupport = true; in init()
347 shaderCaps->fGSInvocationsSupport = true; in init()
348 shaderCaps->fGSInvocationsExtensionString = "GL_ARB_gpu_shader5"; in init()
352 shaderCaps->fIntegerSupport = version >= GR_GL_VER(3, 0) && in init()
355 shaderCaps->fNonsquareMatrixSupport = ctxInfo.glslGeneration() >= k130_GrGLSLGeneration; in init()
[all …]
/external/skia/src/gpu/glsl/
DGrGLSLFragmentShaderBuilder.cpp89 const GrShaderCaps* shaderCaps = fProgramBuilder->shaderCaps(); in dstColor()
90 if (shaderCaps->fbFetchSupport()) { in dstColor()
92 shaderCaps->fbFetchExtensionString()); in dstColor()
96 if (shaderCaps->fbFetchNeedsCustomOutput()) { in dstColor()
112 if (fProgramBuilder->shaderCaps()->mustEnableAdvBlendEqs()) { in enableAdvancedBlendEquationIfNeeded()
130 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in enableSecondaryOutput()
157 return (fProgramBuilder->shaderCaps()->mustDeclareFragmentShaderOutput()) in getSecondaryColorOutputName()
DGrGLSLVarying.cpp24 const GrShaderCaps& shaderCaps) { in use_flat_interpolation() argument
30 SkASSERT(!shaderCaps.preferFlatInterpolation() || in use_flat_interpolation()
31 shaderCaps.flatInterpolationSupport()); in use_flat_interpolation()
32 return shaderCaps.preferFlatInterpolation(); in use_flat_interpolation()
34 SkASSERT(shaderCaps.flatInterpolationSupport()); in use_flat_interpolation()
49 v.fIsFlat = use_flat_interpolation(interpolation, *fProgramBuilder->shaderCaps()); in addVarying()
89 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in setNoPerspective()
131 varying.appendDecl(fProgramBuilder->shaderCaps(), out); in appendDecls()
148 SkASSERT(k110_GrGLSLGeneration != fProgramBuilder->shaderCaps()->generation() || in getFragDecls()
DGrGLSLGeometryProcessor.cpp229 if (vb->getProgramBuilder()->shaderCaps()->nonsquareMatrixSupport()) { in emitTransformCode()
263 if (fragBuilder->getProgramBuilder()->shaderCaps()->mustObfuscateUniformColor()) { in setupUniformColor()
269 const GrShaderCaps& shaderCaps, in SetTransform() argument
280 if (matrix.isScaleTranslate() && !shaderCaps.reducedShaderMode()) { in SetTransform()
305 const GrShaderCaps& shaderCaps, in write_vertex_position() argument
314 if (matrix.isIdentity() && !shaderCaps.reducedShaderMode()) { in write_vertex_position()
320 bool useCompactTransform = matrix.isScaleTranslate() && !shaderCaps.reducedShaderMode(); in write_vertex_position()
362 } else if (shaderCaps.nonsquareMatrixSupport()) { in write_vertex_position()
386 const GrShaderCaps& shaderCaps, in WriteOutputPosition() argument
394 shaderCaps, in WriteOutputPosition()
[all …]
DGrGLSLProgramBuilder.cpp100 fGeometryProcessor.reset(geomProc.createGLSLInstance(*this->shaderCaps())); in emitAndInstallPrimProc()
123 this->shaderCaps(), in emitAndInstallPrimProc()
195 this->shaderCaps(), in emitFragProc()
224 if (this->shaderCaps()->mustDeclareFragmentShaderOutput()) { in emitAndInstallXferProc()
259 this->shaderCaps(), in emitAndInstallXferProc()
283 this->shaderCaps()); in emitSampler()
292 const GrShaderCaps& shaderCaps = *this->shaderCaps(); in checkSamplerCounts() local
293 if (fNumFragmentSamplers > shaderCaps.maxFragmentSamplers()) { in checkSamplerCounts()
357 SkASSERT(this->shaderCaps()->geometryShaderSupport()); in finalizeShaders()
DGrGLSLGeometryProcessor.h217 static uint32_t ComputeMatrixKeys(const GrShaderCaps& shaderCaps, in ComputeMatrixKeys() argument
220 return (ComputeMatrixKey(shaderCaps, viewMatrix) << kMatrixKeyBits) | in ComputeMatrixKeys()
221 ComputeMatrixKey(shaderCaps, localMatrix); in ComputeMatrixKeys()
223 static uint32_t AddMatrixKeys(const GrShaderCaps& shaderCaps, in AddMatrixKeys() argument
230 ComputeMatrixKeys(shaderCaps, viewMatrix, localMatrix); in AddMatrixKeys()
DGrGLSLShaderBuilder.cpp38 var.appendDecl(fProgramBuilder->shaderCaps(), &tempDecl); in declAppend()
43 v.appendDecl(this->getProgramBuilder()->shaderCaps(), &this->definitions()); in declareGlobal()
59 args[i].appendDecl(fProgramBuilder->shaderCaps(), &this->functions()); in appendFunctionDecl()
237 bool useFloat = fProgramBuilder->shaderCaps()->colorSpaceMathNeedsFloat(); in appendColorGamutXform()
287 v.appendDecl(fProgramBuilder->shaderCaps(), out); in appendDecls()
293 SkASSERT(fProgramBuilder->shaderCaps()->generation() >= k330_GrGLSLGeneration || in addLayoutQualifier()
294 fProgramBuilder->shaderCaps()->mustEnableAdvBlendEqs()); in addLayoutQualifier()
/external/skqp/src/gpu/glsl/
DGrGLSLVarying.cpp24 const GrShaderCaps& shaderCaps) { in use_flat_interpolation() argument
30 SkASSERT(!shaderCaps.preferFlatInterpolation() || in use_flat_interpolation()
31 shaderCaps.flatInterpolationSupport()); in use_flat_interpolation()
32 return shaderCaps.preferFlatInterpolation(); in use_flat_interpolation()
34 SkASSERT(shaderCaps.flatInterpolationSupport()); in use_flat_interpolation()
50 v.fIsFlat = use_flat_interpolation(interpolation, *fProgramBuilder->shaderCaps()); in addVarying()
91 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in setNoPerspective()
135 vars[i].appendDecl(fProgramBuilder->shaderCaps(), out); in appendDecls()
152 SkASSERT(k110_GrGLSLGeneration != fProgramBuilder->shaderCaps()->generation() || in getFragDecls()
DGrGLSLFragmentShaderBuilder.cpp98 const GrShaderCaps* shaderCaps = fProgramBuilder->shaderCaps(); in dstColor()
99 if (shaderCaps->fbFetchSupport()) { in dstColor()
101 shaderCaps->fbFetchExtensionString()); in dstColor()
105 if (shaderCaps->fbFetchNeedsCustomOutput()) { in dstColor()
121 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in enableAdvancedBlendEquationIfNeeded()
148 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in enableSecondaryOutput()
181 const GrShaderCaps& caps = *fProgramBuilder->shaderCaps(); in getSecondaryColorOutputName()
DGrGLSLProgramBuilder.cpp102 fGeometryProcessor.reset(proc.createGLSLInstance(*this->shaderCaps())); in emitAndInstallPrimProc()
124 this->shaderCaps(), in emitAndInstallPrimProc()
205 this->shaderCaps(), in emitAndInstallFragProc()
237 if (this->shaderCaps()->mustDeclareFragmentShaderOutput()) { in emitAndInstallXferProc()
259 this->shaderCaps(), in emitAndInstallXferProc()
279 return this->uniformHandler()->addSampler(texture, state, name, this->shaderCaps()); in emitSampler()
299 const GrShaderCaps& shaderCaps = *this->shaderCaps(); in checkSamplerCounts() local
300 if (fNumFragmentSamplers > shaderCaps.maxFragmentSamplers()) { in checkSamplerCounts()
374 SkASSERT(this->shaderCaps()->geometryShaderSupport()); in finalizeShaders()
DGrGLSLShaderBuilder.cpp34 var.appendDecl(fProgramBuilder->shaderCaps(), &tempDecl); in declAppend()
39 v.appendDecl(this->getProgramBuilder()->shaderCaps(), &this->definitions()); in declareGlobal()
49 this->functions().append(GrGLSLTypeString(fProgramBuilder->shaderCaps(), returnType)); in emitFunction()
54 args[i].appendDecl(fProgramBuilder->shaderCaps(), &this->functions()); in emitFunction()
208 vars[i].appendDecl(fProgramBuilder->shaderCaps(), out); in appendDecls()
214 SkASSERT(fProgramBuilder->shaderCaps()->generation() >= k330_GrGLSLGeneration || in addLayoutQualifier()
215 fProgramBuilder->shaderCaps()->mustEnableAdvBlendEqs()); in addLayoutQualifier()
244 this->versionDecl() = fProgramBuilder->shaderCaps()->versionDeclString(); in finalize()
DGrGLSLBlend.cpp44 const GrShaderCaps* shaderCaps = fsBuilder->getProgramBuilder()->shaderCaps(); in color_dodge_component() local
45 if (shaderCaps->mustGuardDivisionEvenAfterExplicitZeroCheck()) { in color_dodge_component()
74 const GrShaderCaps* shaderCaps = fsBuilder->getProgramBuilder()->shaderCaps(); in color_burn_component() local
75 if (shaderCaps->mustGuardDivisionEvenAfterExplicitZeroCheck()) { in color_burn_component()
101 const GrShaderCaps* shaderCaps = fsBuilder->getProgramBuilder()->shaderCaps(); in soft_light_component_pos_dst_alpha() local
102 if (shaderCaps->mustGuardDivisionEvenAfterExplicitZeroCheck()) { in soft_light_component_pos_dst_alpha()
/external/skia/src/gpu/tessellate/
DGrTessellationPathRenderer.cpp41 caps.shaderCaps()->vertexIDSupport() && in IsSupported()
73 if (!caps.shaderCaps()->tessellationSupport()) { in initAtlasFlags()
89 float s = caps.shaderCaps()->maxTessellationSegments(); in initAtlasFlags()
105 caps.shaderCaps()->maxTessellationSegments()).c_str()); in initAtlasFlags()
145 !args.fCaps->shaderCaps()->tessellationSupport() && in onCanDrawPath()
161 const GrShaderCaps& shaderCaps = *rContext->priv().caps()->shaderCaps(); in make_op() local
218 if ((1 << worstCaseResolveLevel) > shaderCaps.maxTessellationSegments()) { in make_op()
274 const GrShaderCaps& shaderCaps = *args.fContext->priv().caps()->shaderCaps(); in onDrawPath() local
275 SkASSERT(worstCaseNumSegments <= shaderCaps.maxTessellationSegments()); in onDrawPath()
/external/skia/src/gpu/effects/
DGrBezierEffect.cpp28 const GrShaderCaps& shaderCaps, in setData() argument
32 SetTransform(pdman, shaderCaps, fViewMatrixUniform, ce.viewMatrix(), &fViewMatrix); in setData()
33 SetTransform(pdman, shaderCaps, fLocalMatrixUniform, ce.localMatrix(), &fLocalMatrix); in setData()
165 const GrShaderCaps& shaderCaps, in GenKey() argument
171 key = AddMatrixKeys(shaderCaps, in GenKey()
238 const GrShaderCaps& shaderCaps, in setData() argument
242 SetTransform(pdman, shaderCaps, fViewMatrixUniform, qe.viewMatrix(), &fViewMatrix); in setData()
243 SetTransform(pdman, shaderCaps, fLocalMatrixUniform, qe.localMatrix(), &fLocalMatrix); in setData()
341 const GrShaderCaps& shaderCaps, in GenKey() argument
347 key = AddMatrixKeys(shaderCaps, in GenKey()
DGrDistanceFieldGeoProc.cpp163 const GrShaderCaps& shaderCaps, in setData() argument
184 SetTransform(pdman, shaderCaps, fLocalMatrixUniform, dfa8gp.localMatrix(), &fLocalMatrix); in setData()
188 const GrShaderCaps& shaderCaps, in GenKey() argument
192 key |= ComputeMatrixKey(shaderCaps, dfTexEffect.localMatrix()) << 16; in GenKey()
309 return GrDistanceFieldA8TextGeoProc::Make(d->allocator(), *d->caps()->shaderCaps(), in TestCreate()
453 const GrShaderCaps& shaderCaps, in setData() argument
459 SetTransform(pdman, shaderCaps, fMatrixUniform, dfpgp.matrix(), &fMatrix); in setData()
472 const GrShaderCaps& shaderCaps, in GenKey() argument
477 key |= ComputeMatrixKey(shaderCaps, dfTexEffect.matrix()) << 16; in GenKey()
580 return GrDistanceFieldPathGeoProc::Make(d->allocator(), *d->caps()->shaderCaps(), in TestCreate()
[all …]
/external/skia/src/gpu/ccpr/
DGrCoverageCountingPathRenderer.cpp23 const GrShaderCaps& shaderCaps = *caps.shaderCaps(); in IsSupported() local
26 if (caps.driverDisableMSAAClipAtlas() || !shaderCaps.integerSupport() || in IsSupported()
27 !caps.drawInstancedSupport() || !shaderCaps.floatIs32Bits() || in IsSupported()
35 shaderCaps.sampleMaskSupport()) { in IsSupported()
/external/skia/gm/
Dwidebuttcaps.cpp53 canvas->recordingContext()->priv().caps()->shaderCaps()->tessellationSupport() && in draw_test()
54 canvas->recordingContext()->priv().caps()->shaderCaps()->maxTessellationSegments() < 64) { in draw_test()
119 if (!context->priv().caps()->shaderCaps()->tessellationSupport() || in onDraw()
129 if (context->priv().caps()->shaderCaps()->maxTessellationSegments() != in onDraw()
/external/skia/tools/gpu/
DTestOps.cpp39 void getGLSLProcessorKey(const GrShaderCaps& shaderCaps, in getGLSLProcessorKey() argument
41 GLSLGP::GenKey(*this, shaderCaps, b); in getGLSLProcessorKey()
50 const GrShaderCaps& shaderCaps, in setData() argument
53 SetTransform(pdman, shaderCaps, fLocalMatrixUni, gp.fLocalMatrix); in setData()
56 static void GenKey(const GP& gp, const GrShaderCaps& shaderCaps, GrProcessorKeyBuilder* b) { in GenKey() argument
57 b->add32(ComputeMatrixKey(shaderCaps, gp.fLocalMatrix)); in GenKey()
/external/skqp/src/gpu/effects/
DGrBezierEffect.h69 if (!caps.shaderCaps()->shaderDerivativeSupport()) {
76 if (!caps.shaderCaps()->shaderDerivativeSupport()) {
153 if (!caps.shaderCaps()->shaderDerivativeSupport()) {
160 if (!caps.shaderCaps()->shaderDerivativeSupport()) {

12345678