diff options
author | Brian Salomon <bsalomon@google.com> | 2018-01-22 08:43:38 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-01-22 14:14:18 +0000 |
commit | dba65f95e40fb1a4ea936b453b9bcb3fdbe178e1 (patch) | |
tree | 307b8b391870d8891e523fc3879c6787da5e8146 /src/sksl/SkSLGLSLCodeGenerator.h | |
parent | 5081eede67601e5c5c0fc343b787490603e058cc (diff) |
Add a workaround for inaccurate interpolants on Adreno 3xx.
Also ensure that sk_FragCoord x and y values are at pixel centers when
workaround is used.
Change-Id: Ib748af9e496a406a50622e00e96e1346cbb5eb26
Reviewed-on: https://skia-review.googlesource.com/97064
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/sksl/SkSLGLSLCodeGenerator.h')
-rw-r--r-- | src/sksl/SkSLGLSLCodeGenerator.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sksl/SkSLGLSLCodeGenerator.h b/src/sksl/SkSLGLSLCodeGenerator.h index 70ce920900..2b308e3702 100644 --- a/src/sksl/SkSLGLSLCodeGenerator.h +++ b/src/sksl/SkSLGLSLCodeGenerator.h @@ -212,6 +212,7 @@ protected: bool fFoundGSInvocations = false; bool fSetupFragPositionGlobal = false; bool fSetupFragPositionLocal = false; + bool fSetupFragCoordWorkaround = false; typedef CodeGenerator INHERITED; }; |