aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLCaps.cpp
diff options
context:
space:
mode:
authorGravatar cdalton <cdalton@nvidia.com>2016-04-11 12:03:08 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-04-11 12:03:08 -0700
commita6b92ad1f7b79106caef6a4c721903544f507a02 (patch)
treef91503b26a515e060202000ecd6bb1923de1e7ed /src/gpu/gl/GrGLCaps.cpp
parent21a465d7f4c5e639044e79971aeaa1194fc73078 (diff)
Infer sampler precision from pixel config
Adds a "samplerPrecision" method to GrGLSLCaps and updates GrGLSLProgramBuilder to infer a sampler's precision based on its config and visibility. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1846963004 Review URL: https://codereview.chromium.org/1846963004
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index e850dcabaf..fc2c8ce398 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -1197,6 +1197,7 @@ void GrGLCaps::initShaderPrecisionTable(const GrGLContextInfo& ctxInfo,
glslCaps->fFloatPrecisions[kVertex_GrShaderType][p];
}
}
+ glslCaps->initSamplerPrecisionTable();
}
bool GrGLCaps::bgraIsInternalFormat() const {