diff options
author | Chris Dalton <csmartdalton@google.com> | 2018-03-07 07:46:10 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-03-14 16:35:50 +0000 |
commit | c2d0dd658bbb8caebf0cc9d5cf4b98b1bda616e7 (patch) | |
tree | e3484818ca2d9b65df1c1b54595ea0e5b2f44891 /src/gpu/gl | |
parent | c4f49040919ef5698c9abd31f7f250f572d8caa8 (diff) |
Add a shader cap for incomplete short int precision
Bug: skia:
Change-Id: Iac36eb763e687f6ecc3acbd4afced66f95596be2
Reviewed-on: https://skia-review.googlesource.com/109003
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
Commit-Queue: Chris Dalton <csmartdalton@google.com>
Diffstat (limited to 'src/gpu/gl')
-rw-r--r-- | src/gpu/gl/GrGLCaps.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp index 3b5f6b2278..4def7b7427 100644 --- a/src/gpu/gl/GrGLCaps.cpp +++ b/src/gpu/gl/GrGLCaps.cpp @@ -2371,6 +2371,12 @@ void GrGLCaps::applyDriverCorrectnessWorkarounds(const GrGLContextInfo& ctxInfo, shaderCaps->fInterpolantsAreInaccurate = true; } + // On Mali G71, mediump ints don't appear capable of representing every integer beyond +/-2048. + // (Are they implemented with fp16?) + if (kARM_GrGLVendor == ctxInfo.vendor()) { + shaderCaps->fIncompleteShortIntPrecision = true; + } + // Disabling advanced blend on various platforms with major known issues. We also block Chrome // for now until its own blacklists can be updated. if (kAdreno4xx_GrGLRenderer == ctxInfo.renderer() || |