
This allows to capture the next update of all stage views using meta_backend_renderdoc_capture. Finer control over what stage view is captured when can be added in the future. Currently, renderdoc does not support the GL_OES_EGL_image extension that we depend on for importing dma-bufs. This means that dma-buf support is broken when mutter in launched with renderdoc. One can hack up renderdoc to pretend to support GL_OES_EGL_image and specifically EGLImageTargetTexture2DOES to restore the full mutter functionality but renderdoc captures replay with a black rectangle where those dma-buf buffers are being painted. See: https://registry.khronos.org/OpenGL/extensions/OES/OES_EGL_image.txt https://registry.khronos.org/OpenGL/extensions/OES/OES_EGL_image_external.txt It looks like the renderdoc maintainer does not want to merge support for the extension: https://github.com/baldurk/renderdoc/pull/2845 We would only need support for dma-buf EGLImages which so it might be possible to convince the maintainer. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4061>