Remove sentinal GLContext used in early days of Vulkan in our tools
authorGreg Daniel <egdaniel@google.com>
Tue, 24 Jan 2017 18:13:30 +0000 (13:13 -0500)
committerSkia Commit-Bot <skia-commit-bot@chromium.org>
Tue, 24 Jan 2017 18:57:36 +0000 (18:57 +0000)
I've ran this through multiple variations of dm and nanobench on Linux
and no longer see any crash/hangs. I forget what the original repo case
for the bug was, but I'm at least not seeing it now with updated drivers.

BUG=skia:

Change-Id: I6b7129a4c4d67938baa35d2e2c720cb078fc4c18
Reviewed-on: https://skia-review.googlesource.com/7441
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Greg Daniel <egdaniel@google.com>

tools/gpu/GrContextFactory.cpp
tools/gpu/GrContextFactory.h

index bd745bc..9c124bf 100644 (file)
@@ -191,15 +191,6 @@ ContextInfo GrContextFactory::getContextInfo(ContextType type, ContextOptions op
                 return ContextInfo();
             }
 
-            // There is some bug (either in Skia or the NV Vulkan driver) where VkDevice
-            // destruction will hang occaisonally. For some reason having an existing GL
-            // context fixes this.
-            if (!fSentinelGLContext) {
-                fSentinelGLContext.reset(CreatePlatformGLTestContext(kGL_GrGLStandard));
-                if (!fSentinelGLContext) {
-                    fSentinelGLContext.reset(CreatePlatformGLTestContext(kGLES_GrGLStandard));
-                }
-            }
             backendContext = testCtx->backendContext();
             break;
 #endif
index a232112..25ebee9 100644 (file)
@@ -163,7 +163,6 @@ private:
         bool            fAbandoned;
     };
     SkTArray<Context, true>         fContexts;
-    std::unique_ptr<GLTestContext>  fSentinelGLContext;
     const GrContextOptions          fGlobalOptions;
 };
 }  // namespace sk_gpu_test