diff options
author | 2015-05-13 07:21:17 -0700 | |
---|---|---|
committer | 2015-05-13 07:21:17 -0700 | |
commit | 0cfe1242ee284290bde1ebe3f48626c555fdac51 (patch) | |
tree | 7cbb3c127ce37008b0d0f7469105b1d06364552d /src | |
parent | c7d9616b1ac54e84c09cca394a24b5bef1aa2ee2 (diff) |
Revert of Remove workaround to for lower glsl support for qualcomm (patchset #1 id:1 of https://codereview.chromium.org/1133543004/)
Reason for revert:
breaks many qualcomm gms
Original issue's description:
> Remove workaround to for lower glsl support for qualcomm
>
> BUG=skia:
>
> Committed: https://skia.googlesource.com/skia/+/9770bdce776f45367c419b8dd82219eece26ca5c
TBR=bsalomon@google.com
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=skia:
Review URL: https://codereview.chromium.org/1135393003
Diffstat (limited to 'src')
-rw-r--r-- | src/gpu/gl/GrGLContext.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLContext.cpp b/src/gpu/gl/GrGLContext.cpp index 537363493f..fc8b195fd3 100644 --- a/src/gpu/gl/GrGLContext.cpp +++ b/src/gpu/gl/GrGLContext.cpp @@ -47,6 +47,16 @@ bool GrGLContextInfo::initialize(const GrGLInterface* interface) { fVendor = GrGLGetVendor(interface); + /* + * Qualcomm drivers have a horrendous bug with some drivers. Though they claim to + * support GLES 3.00, some perfectly valid GLSL300 shaders will only compile with + * #version 100, and will fail to compile with #version 300 es. In the long term, we + * need to lock this down to a specific driver version. + */ + if (kQualcomm_GrGLVendor == fVendor) { + fGLSLGeneration = k110_GrGLSLGeneration; + } + fRenderer = GrGLGetRendererFromString(renderer); fIsMesa = GrGLIsMesaFromVersionString(ver); |