⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 284833 in webkit


Ignore:
Timestamp:
Oct 25, 2021, 2:51:06 PM (5 years ago)
Author:
Alan Coon
Message:

Cherry-pick r284007. rdar://problem/84630339

Cocoa GraphicsContextGLOpenGL uses depth and stencil for pbuffers on ANGLE Metal
https://bugs.webkit.org/show_bug.cgi?id=231424

Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-10-12
Reviewed by Dean Jackson.

ANGLE Metal allocates depth and stencil buffers when a pbuffer is bound to
a texture via eglBindTexImage.
To side-step this performance issue, allocate the gl context with EGLConfig
that disables depth and stencil. The config is used for the video texture
upload context, video texture upload pbuffers as well as other pbuffers.

  • platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: (WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284007 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612-branch/Source/WebCore/ChangeLog

    r284832 r284833  
     12021-10-25  Null  <null@apple.com>
     2
     3        Cherry-pick r284007. rdar://problem/84630339
     4
     5    Cocoa GraphicsContextGLOpenGL uses depth and stencil for pbuffers on ANGLE Metal
     6    https://bugs.webkit.org/show_bug.cgi?id=231424
     7   
     8    Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-10-12
     9    Reviewed by Dean Jackson.
     10   
     11    ANGLE Metal allocates depth and stencil buffers when a pbuffer is bound to
     12    a texture via eglBindTexImage.
     13    To side-step this performance issue, allocate the gl context with EGLConfig
     14    that disables depth and stencil. The config is used for the video texture
     15    upload context, video texture upload pbuffers as well as other pbuffers.
     16   
     17    * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm:
     18    (WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL):
     19   
     20    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     21
     22    2021-10-12  Kimmo Kinnunen  <kkinnunen@apple.com>
     23
     24            Cocoa GraphicsContextGLOpenGL uses depth and stencil for pbuffers on ANGLE Metal
     25            https://bugs.webkit.org/show_bug.cgi?id=231424
     26
     27            Reviewed by Dean Jackson.
     28
     29            ANGLE Metal allocates depth and stencil buffers when a pbuffer is bound to
     30            a texture via eglBindTexImage.
     31            To side-step this performance issue, allocate the gl context with EGLConfig
     32            that disables depth and stencil. The config is used for the video texture
     33            upload context, video texture upload pbuffers as well as other pbuffers.
     34
     35            * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm:
     36            (WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL):
     37
    1382021-10-25  Null  <null@apple.com>
    239
  • branches/safari-612-branch/Source/WebCore/platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm

    r284827 r284833  
    267267        EGL_BLUE_SIZE, 8,
    268268        EGL_ALPHA_SIZE, 8,
     269        EGL_DEPTH_SIZE, 0,
     270        EGL_STENCIL_SIZE, 0,
    269271        EGL_NONE
    270272    };
Note: See TracChangeset for help on using the changeset viewer.