Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(618)

Unified Diff: src/gpu/gl/GrGLShaderBuilder.cpp

Issue 277323002: Make GrGLConfigConversionEffect work for Imagination and some other GPUs. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Only change outColor to highp for PowerVR Rogue Hood Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/gpu/gl/GrGLUtil.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLShaderBuilder.cpp
diff --git a/src/gpu/gl/GrGLShaderBuilder.cpp b/src/gpu/gl/GrGLShaderBuilder.cpp
index c5df4c803ce501011616bef7c7d458d1668d8996..d5e056bb908c129a8a3212561b42809c2f29af1e 100644
--- a/src/gpu/gl/GrGLShaderBuilder.cpp
+++ b/src/gpu/gl/GrGLShaderBuilder.cpp
@@ -536,7 +536,13 @@ void GrGLShaderBuilder::createAndEmitEffects(GrGLProgramEffectsBuilder* programE
// create var to hold stage result
SkString outColorName;
this->nameVariable(&outColorName, '\0', "output");
- this->fsCodeAppendf("\tvec4 %s;\n", outColorName.c_str());
+
+ if (kImagination_GrGLVendor == this->ctxInfo().vendor() &&
+ kPVRRogueHood_GrGLRenderer == this->ctxInfo().renderer())
bsalomon 2014/07/01 13:54:51 Can't you have a temporary highp var in the config
+ this->fsCodeAppendf("\thighp vec4 %s;\n", outColorName.c_str());
+ else
+ this->fsCodeAppendf("\tvec4 %s;\n", outColorName.c_str());
+
outColor = outColorName;
« no previous file with comments | « no previous file | src/gpu/gl/GrGLUtil.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698