fune/gfx/gl
Jamie Nicol c3f6044a08 Bug 1903810 - Leak EGLDisplays on all Samsung Xclipse GPUs. a=dmeehan
In bug 1868825 we encountered crashes on a specific device when
calling eglTerminate. As a workaround, we avoided calling eglTerminate
and instead deliberately leaked the EGLDisplay. As we had only
encountered this crash on a specific device, we limited the workaround
to just that device.

We are now seeing the same crash on a range of devices, all with
Samsung Xclipse GPUs. This patch therefore makes us leak the
EGLDisplays on all devices with an Xclipse GPU.

As the GPU model is not available in EglDisplay code, we instead set a
flag on the EglDisplay object when the GLContext is initialized. Prior
to terminating the display we check whether this flag has been set.
Terminating a display which has not had a context created does not
reproduce the crash, so this is sufficient.

Original Revision: https://phabricator.services.mozilla.com/D214539

Differential Revision: https://phabricator.services.mozilla.com/D214800
2024-06-25 13:26:51 +00:00
..
gtest Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale 2024-05-06 23:36:51 +00:00
AndroidNativeWindow.h
AndroidSurfaceTexture.cpp
AndroidSurfaceTexture.h
AutoMappable.h Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale 2024-05-06 23:36:51 +00:00
Colorspaces.cpp
Colorspaces.h Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale 2024-05-06 23:36:51 +00:00
ForceDiscreteGPUHelperCGL.h
GfxTexturesReporter.cpp
GfxTexturesReporter.h
GLBlitHelper.cpp Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale 2024-05-06 23:36:51 +00:00
GLBlitHelper.h Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale 2024-05-06 23:36:51 +00:00
GLBlitHelperD3D.cpp Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale 2024-05-06 23:36:51 +00:00
GLConsts.h
GLConsts.py
GLContext.cpp Bug 1790873 - Send a full line at a time to printf_stderr in GLContext.cpp r=jgilbert 2024-02-28 18:15:03 +00:00
GLContext.h Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale 2024-05-06 23:36:51 +00:00
GLContextCGL.h
GLContextEAGL.h Bug 1884836 - Base graphics support for iOS. r=gfx-reviewers,bradwerth 2024-03-15 01:28:27 +00:00
GLContextEGL.h Bug 1856560 [Wayland] Rename SavedGLSurface to WaylandOffscreenGLSurface r=lsalzman 2023-11-15 08:54:58 +00:00
GLContextFeatures.cpp
GLContextGLX.h Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,media-playback-reviewers,padenot 2024-04-22 16:00:09 +00:00
GLContextProvider.h Bug 1884836 - Base graphics support for iOS. r=gfx-reviewers,bradwerth 2024-03-15 01:28:27 +00:00
GLContextProviderCGL.mm Bug 1877341 - Reset GLContext TLS current-context caching when calling library MakeCurrent symbols. r=gfx-reviewers,ahale 2024-02-01 18:44:20 +00:00
GLContextProviderEAGL.mm Bug 1884836 - Base graphics support for iOS. r=gfx-reviewers,bradwerth 2024-03-15 01:28:27 +00:00
GLContextProviderEGL.cpp Bug 1903810 - Leak EGLDisplays on all Samsung Xclipse GPUs. a=dmeehan 2024-06-25 13:26:51 +00:00
GLContextProviderGLX.cpp Bug 1519636 - Reformat recent changes to the Google coding style r=emilio,media-playback-reviewers,padenot 2024-04-22 16:00:09 +00:00
GLContextProviderImpl.h
GLContextProviderLinux.cpp
GLContextProviderNull.cpp
GLContextProviderWGL.cpp Bug 1877341 - Reset GLContext TLS current-context caching when calling library MakeCurrent symbols. r=gfx-reviewers,ahale 2024-02-01 18:44:20 +00:00
GLContextSymbols.h
GLContextTypes.h Bug 1655101 - Allow webgl.texImage gpu-blit for RGB8 if supported. r=gfx-reviewers,aosmond 2024-01-04 18:38:52 +00:00
GLContextWGL.h
GLDebugUtils.cpp
GLDebugUtils.h
GLDefs.h
GLLibraryEGL.cpp Bug 1843782 - WebGL software rendering when mesa/vmwgfx driver detected r=gfx-reviewers,bradwerth,jrmuizel,jgilbert 2023-11-29 21:45:27 +00:00
GLLibraryEGL.h Bug 1903810 - Leak EGLDisplays on all Samsung Xclipse GPUs. a=dmeehan 2024-06-25 13:26:51 +00:00
GLLibraryLoader.cpp
GLLibraryLoader.h
GLReadTexImageHelper.cpp
GLReadTexImageHelper.h
GLScreenBuffer.cpp Bug 1894929 - Disable gl::SwapChain's internal pooling when RemoteTextureMap is used. r=jnicol,gfx-reviewers 2024-05-20 18:21:15 +00:00
GLScreenBuffer.h Bug 1894929 - Disable gl::SwapChain's internal pooling when RemoteTextureMap is used. r=jnicol,gfx-reviewers 2024-05-20 18:21:15 +00:00
GLTextureImage.cpp
GLTextureImage.h
GLTypes.h Bug 1884836 - Base graphics support for iOS. r=gfx-reviewers,bradwerth 2024-03-15 01:28:27 +00:00
GLUploadHelpers.cpp
GLUploadHelpers.h
GLXLibrary.h Bug 1877341 - Reset GLContext TLS current-context caching when calling library MakeCurrent symbols. r=gfx-reviewers,ahale 2024-02-01 18:44:20 +00:00
HeapCopyOfStackArray.h
moz.build Bug 1884836 - Base graphics support for iOS. r=gfx-reviewers,bradwerth 2024-03-15 01:28:27 +00:00
MozFramebuffer.cpp
MozFramebuffer.h
ScopedGLHelpers.cpp
ScopedGLHelpers.h
SharedSurface.cpp Bug 1884012 - Fall back to the warning-silencer case everywhere in SurfaceFactory::Create. r=gfx-reviewers,jgilbert 2024-03-07 00:53:05 +00:00
SharedSurface.h Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale 2024-05-06 23:36:51 +00:00
SharedSurfaceAndroidHardwareBuffer.cpp
SharedSurfaceAndroidHardwareBuffer.h Bug 1877726. Revert "Bug 1664063 - Ensure we consistently handle all errors from IDXGIKeyedMutex::AcquireSync.". 2024-02-13 04:25:35 +00:00
SharedSurfaceANGLE.cpp Backed out changeset 10faf99bbe8f (bug 1880016) as request by sotaro. 2024-02-13 18:13:04 +02:00
SharedSurfaceANGLE.h Bug 1877726. Revert "Bug 1664063 - Ensure we consistently handle all errors from IDXGIKeyedMutex::AcquireSync.". 2024-02-13 04:25:35 +00:00
SharedSurfaceD3D11Interop.cpp Backed out changeset 10faf99bbe8f (bug 1880016) as request by sotaro. 2024-02-13 18:13:04 +02:00
SharedSurfaceD3D11Interop.h Bug 1877726. Revert "Bug 1664063 - Ensure we consistently handle all errors from IDXGIKeyedMutex::AcquireSync.". 2024-02-13 04:25:35 +00:00
SharedSurfaceDMABUF.cpp
SharedSurfaceDMABUF.h Bug 1877726. Revert "Bug 1664063 - Ensure we consistently handle all errors from IDXGIKeyedMutex::AcquireSync.". 2024-02-13 04:25:35 +00:00
SharedSurfaceEGL.cpp Bug 1877726. Revert "Bug 1664063 - Ensure we consistently handle all errors from IDXGIKeyedMutex::AcquireSync.". 2024-02-13 04:25:35 +00:00
SharedSurfaceEGL.h Bug 1877726. Revert "Bug 1664063 - Ensure we consistently handle all errors from IDXGIKeyedMutex::AcquireSync.". 2024-02-13 04:25:35 +00:00
SharedSurfaceGL.cpp
SharedSurfaceGL.h
SharedSurfaceIO.cpp Bug 1884836 - Base graphics support for iOS. r=gfx-reviewers,bradwerth 2024-03-15 01:28:27 +00:00
SharedSurfaceIO.h Bug 1885447 - Tonemap/color-manage webgl sdr/wcg output into Display profile as pre-compositor post-process. r=gfx-reviewers,webidl,smaug,ahale 2024-05-06 23:36:51 +00:00
SurfaceTypes.h
WGLLibrary.h