aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLCaps.cpp
diff options
context:
space:
mode:
authorGravatar djsollen <djsollen@google.com>2015-06-12 12:01:15 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-06-12 12:01:15 -0700
commit1fe1858a90532f4db578bffb97936742d39ede49 (patch)
tree12119fd6b50fd7e70a7fc07175fe2c02ad986c65 /src/gpu/gl/GrGLCaps.cpp
parentd85093c28fe360650c46971b00a39c6dbf991a6b (diff)
Revert of Import functionality for new GL backend (patchset #2 id:20001 of https://codereview.chromium.org/1185573003/)
Reason for revert: breaking multiple builds. For example... https://uberchromegw.corp.google.com/i/client.skia/builders/Test-Ubuntu-GCC-Golo-GPU-GT610-x86_64-Debug-ASAN/builds/667 Original issue's description: > Import functionality for new GL backend > > Brings in the following functionality: > > ARB_draw_instanced > ARB_instanced_arrays > NV_bindless_texture > EXT_direct_state_access > KHR_debug > > Also cleans up some of the NVPR extension loading. > > BUG=skia: > > Committed: https://skia.googlesource.com/skia/+/202c4c75fb806f751cf796850bf67fe9793e0643 TBR=bsalomon@google.com,cdalton@nvidia.com NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=skia: Review URL: https://codereview.chromium.org/1184863002
Diffstat (limited to 'src/gpu/gl/GrGLCaps.cpp')
-rw-r--r--src/gpu/gl/GrGLCaps.cpp36
1 files changed, 3 insertions, 33 deletions
diff --git a/src/gpu/gl/GrGLCaps.cpp b/src/gpu/gl/GrGLCaps.cpp
index eacf6f6084..91cf83147c 100644
--- a/src/gpu/gl/GrGLCaps.cpp
+++ b/src/gpu/gl/GrGLCaps.cpp
@@ -39,9 +39,6 @@ GrGLCaps::GrGLCaps(const GrContextOptions& contextOptions,
fTwoFormatLimit = false;
fFragCoordsConventionSupport = false;
fVertexArrayObjectSupport = false;
- fInstancedDrawingSupport = false;
- fDirectStateAccessSupport = false;
- fDebugSupport = false;
fES2CompatibilitySupport = false;
fMultisampleDisableSupport = false;
fUseNonVBOVertexAndIndexDynamicData = false;
@@ -92,8 +89,6 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
}
}
- glslCaps->fBindlessTextureSupport = ctxInfo.hasExtension("GL_NV_bindless_texture");
-
// Adreno GPUs have a tendency to drop tiles when there is a divide-by-zero in a shader
glslCaps->fDropsTileOnZeroDivide = kQualcomm_GrGLVendor == ctxInfo.vendor();
@@ -235,28 +230,6 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
ctxInfo.hasExtension("GL_OES_vertex_array_object");
}
- if ((kGL_GrGLStandard == standard && version >= GR_GL_VER(3,2)) ||
- (kGLES_GrGLStandard == standard && version >= GR_GL_VER(3,0))) {
- fInstancedDrawingSupport = true;
- } else {
- fInstancedDrawingSupport = (ctxInfo.hasExtension("GL_ARB_draw_instanced") ||
- ctxInfo.hasExtension("GL_EXT_draw_instanced")) &&
- (ctxInfo.hasExtension("GL_ARB_instanced_arrays") ||
- ctxInfo.hasExtension("GL_EXT_instanced_arrays"));
- }
-
- if (kGL_GrGLStandard == standard) {
- fDirectStateAccessSupport = ctxInfo.hasExtension("GL_EXT_direct_state_access");
- } else {
- fDirectStateAccessSupport = false;
- }
-
- if (kGL_GrGLStandard == standard && version >= GR_GL_VER(4,3)) {
- fDebugSupport = true;
- } else {
- fDebugSupport = ctxInfo.hasExtension("GL_KHR_debug");
- }
-
if (kGL_GrGLStandard == standard) {
fES2CompatibilitySupport = ctxInfo.hasExtension("GL_ARB_ES2_compatibility");
}
@@ -281,7 +254,9 @@ void GrGLCaps::init(const GrContextOptions& contextOptions,
// We only support v1.3+ of GL_NV_path_rendering which allows us to
// set individual fragment inputs with ProgramPathFragmentInputGen. The API
// additions are detected by checking the existence of the function.
- glslCaps->fPathRenderingSupport = ((ctxInfo.version() >= GR_GL_VER(4, 3) ||
+ glslCaps->fPathRenderingSupport =
+ ctxInfo.hasExtension("GL_EXT_direct_state_access") &&
+ ((ctxInfo.version() >= GR_GL_VER(4, 3) ||
ctxInfo.hasExtension("GL_ARB_program_interface_query")) &&
gli->fFunctions.fProgramPathFragmentInputGen);
}
@@ -1048,9 +1023,6 @@ SkString GrGLCaps::dump() const {
r.appendf("Fragment coord conventions support: %s\n",
(fFragCoordsConventionSupport ? "YES": "NO"));
r.appendf("Vertex array object support: %s\n", (fVertexArrayObjectSupport ? "YES": "NO"));
- r.appendf("Instanced drawing support: %s\n", (fInstancedDrawingSupport ? "YES": "NO"));
- r.appendf("Direct state access support: %s\n", (fDirectStateAccessSupport ? "YES": "NO"));
- r.appendf("Debug support: %s\n", (fDebugSupport ? "YES": "NO"));
r.appendf("Multisample disable support: %s\n", (fMultisampleDisableSupport ? "YES" : "NO"));
r.appendf("Use non-VBO for dynamic data: %s\n",
(fUseNonVBOVertexAndIndexDynamicData ? "YES" : "NO"));
@@ -1067,7 +1039,6 @@ GrGLSLCaps::GrGLSLCaps(const GrContextOptions& options,
fDropsTileOnZeroDivide = false;
fFBFetchSupport = false;
fFBFetchNeedsCustomOutput = false;
- fBindlessTextureSupport = false;
fAdvBlendEqInteraction = kNotSupported_AdvBlendEqInteraction;
fFBFetchColorName = NULL;
fFBFetchExtensionString = NULL;
@@ -1092,7 +1063,6 @@ SkString GrGLSLCaps::dump() const {
r.appendf("FB Fetch Support: %s\n", (fFBFetchSupport ? "YES" : "NO"));
r.appendf("Drops tile on zero divide: %s\n", (fDropsTileOnZeroDivide ? "YES" : "NO"));
- r.appendf("Bindless texture support: %s\n", (fBindlessTextureSupport ? "YES" : "NO"));
r.appendf("Advanced blend equation interaction: %s\n",
kAdvBlendEqInteractionStr[fAdvBlendEqInteraction]);
return r;