From e42180022720f2fcfd3c634cad855506a7940591 Mon Sep 17 00:00:00 2001 From: Chris Dalton Date: Wed, 15 Nov 2017 18:27:09 -0700 Subject: Fix precision caps and rrect/ellipse effect precisions Replaces all the complex precision caps with a single flag that says whether "float" == fp32. Updates the ellipse and rrect effects to use float coords, and use the scale workaround when float != fp32. Bug: skia:7190 Change-Id: Ieccff9f38acd05e5cec78fe90d01a5da901a9307 Reviewed-on: https://skia-review.googlesource.com/70961 Commit-Queue: Chris Dalton Reviewed-by: Ethan Nicholas Reviewed-by: Brian Salomon --- src/gpu/GrProgramDesc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gpu/GrProgramDesc.cpp') diff --git a/src/gpu/GrProgramDesc.cpp b/src/gpu/GrProgramDesc.cpp index a32e0cc28b..9c0add66e6 100644 --- a/src/gpu/GrProgramDesc.cpp +++ b/src/gpu/GrProgramDesc.cpp @@ -52,7 +52,7 @@ static uint16_t sampler_key(GrSLType samplerType, GrPixelConfig config, GrShader GR_STATIC_ASSERT(1 == sizeof(caps.configTextureSwizzle(config).asKey())); return SkToU16(samplerTypeKey | caps.configTextureSwizzle(config).asKey() << kSamplerOrImageTypeKeyBits | - (caps.samplerPrecision(config, visibility) << (8 + kSamplerOrImageTypeKeyBits))); + (GrSLSamplerPrecision(config) << (8 + kSamplerOrImageTypeKeyBits))); } static void add_sampler_and_image_keys(GrProcessorKeyBuilder* b, const GrResourceIOProcessor& proc, -- cgit v1.2.3