[Webkit-unassigned] [Bug 217426] New: Implement GraphicsContextGLOpenGL::checkGPUStatus() for ANGLE backend

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 7 04:46:29 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=217426

            Bug ID: 217426
           Summary: Implement GraphicsContextGLOpenGL::checkGPUStatus()
                    for ANGLE backend
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Macintosh
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebGL
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: kkinnunen at apple.com
                CC: dino at apple.com
            Blocks: 217213

Implement GraphicsContextGLOpenGL::checkGPUStatus() for ANGLE backend



GLES/GL implementation:
#if USE(OPENGL)
-    CGLContextObj cglContext = static_cast<CGLContextObj>(platformGraphicsContextGL());
-    CGLGetParameter(cglContext, kCGLCPGPURestartStatus, &restartStatus);
-    if (restartStatus == kCGLCPGPURestartStatusBlacklisted) {
-        LOG(WebGL, "The GPU has blocklisted us (%p). Terminating.", this);
-        exit(EX_OSERR);
-    }
-    if (restartStatus == kCGLCPGPURestartStatusCaused) {
-        LOG(WebGL, "The GPU has reset us (%p). Lose the context.", this);
-        forceContextLost();
-        CGLSetCurrentContext(0);
-    }
-#elif USE(OPENGL_ES)
-    EAGLContext* currentContext = static_cast<EAGLContext*>(PlatformGraphicsContextGL());
-    [currentContext getParameter:kEAGLCPGPURestartStatus to:&restartStatus];
-    if (restartStatus == kEAGLCPGPURestartStatusCaused || restartStatus == kEAGLCPGPURestartStatusBlacklisted) {
-        LOG(WebGL, "The GPU has either reset or blocklisted us (%p). Lose the context.", this);
-        forceContextLost();
-        [EAGLContext setCurrentContext:0];
-    }


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=217213
[Bug 217213] Refactor WebGL implementation to use only GraphicsContextGL
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201007/f6ba5da6/attachment.htm>


More information about the webkit-unassigned mailing list