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

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

Issue 359803003: 32 bpp floating point textures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: another small typo Created 6 years, 5 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
Index: src/gpu/gl/GrGLCaps.cpp
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index 8f2d4c129742fb9cbcb0be099b7538fbbec386d4..df244437b63a1071c959f689ca93a40fe3bb1950 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -444,6 +444,10 @@ void GrGLCaps::initConfigRenderableTable(const GrGLContextInfo& ctxInfo) {
}
}
+ if (this->isConfigTexturable(kRGBA_float_GrPixelConfig)) {
+ fConfigRenderSupport[kRGBA_float_GrPixelConfig][kNo_MSAA] = true;
+ }
+
// If we don't support MSAA then undo any places above where we set a config as renderable with
// msaa.
if (kNone_MSFBOType == fMSFBOType) {
@@ -558,6 +562,13 @@ void GrGLCaps::initConfigTexturableTable(const GrGLContextInfo& ctxInfo, const G
} else {
fConfigTextureSupport[kR11_EAC_GrPixelConfig] = version >= GR_GL_VER(3, 0);
}
+
+ // Check for floating point texture support
+ bool hasFPTexture = (kGL_GrGLStandard == standard);
bsalomon 2014/07/09 14:06:42 It wasn't required in GL until 3.1 but is availabl
+ if (!hasFPTexture) {
+ hasFPTexture = ctxInfo.hasExtension("GL_OES_texture_float");
bsalomon 2014/07/09 14:06:42 RGBA32F is required as of ES3.1, we should check t
+ }
+ fConfigTextureSupport[kRGBA_float_GrPixelConfig] = hasFPTexture;
}
bool GrGLCaps::readPixelsSupported(const GrGLInterface* intf,

Powered by Google App Engine
This is Rietveld 408576698