diff options
author | Brian Salomon <bsalomon@google.com> | 2018-07-10 09:23:40 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-07-10 13:52:04 +0000 |
commit | a7a278205bb040061cb4ba46839efe18635c7edc (patch) | |
tree | 3bae3874270ea6cd4922b97b66d7be7d10dbc803 /src/gpu/GrShaderCaps.h | |
parent | e4db80f1a6a51d11b5471783332513781388cb8d (diff) |
Remove interpolants are inaccurate workaround for Adreno 3xx.
The chrome screenshot unit test that led to adding this workaround has
been adjusted to avoid testing AA edges of rendered rectangles. We're
accepting the inaccuracy in favor of increased performance.
Chrome change: https://chromium-review.googlesource.com/c/chromium/src/+/1129041
Bug: chromium:847984
Change-Id: I9b714ade2a67e956ebb2773ebe3b8632dc3a50c6
Reviewed-on: https://skia-review.googlesource.com/140180
Commit-Queue: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
Auto-Submit: Brian Salomon <bsalomon@google.com>
Reviewed-by: Brian Osman <brianosman@google.com>
Diffstat (limited to 'src/gpu/GrShaderCaps.h')
-rw-r--r-- | src/gpu/GrShaderCaps.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/gpu/GrShaderCaps.h b/src/gpu/GrShaderCaps.h index e16c9f6d5b..66c75dfebb 100644 --- a/src/gpu/GrShaderCaps.h +++ b/src/gpu/GrShaderCaps.h @@ -121,9 +121,6 @@ public: // If false, SkSL uses a workaround so that sk_FragCoord doesn't actually query gl_FragCoord bool canUseFragCoord() const { return fCanUseFragCoord; } - // If true interpolated vertex shader outputs are inaccurate. - bool interpolantsAreInaccurate() const { return fInterpolantsAreInaccurate; } - // If true, short ints can't represent every integer in the 16-bit two's complement range as // required by the spec. SKSL will always emit full ints. bool incompleteShortIntPrecision() const { return fIncompleteShortIntPrecision; } @@ -277,7 +274,6 @@ private: bool fMustObfuscateUniformColor : 1; bool fMustGuardDivisionEvenAfterExplicitZeroCheck : 1; bool fCanUseFragCoord : 1; - bool fInterpolantsAreInaccurate : 1; bool fIncompleteShortIntPrecision : 1; const char* fVersionDeclString; |