1
0
Fork 0
mutter-performance-source/src
Daniel van Vugt 2d3a2a52b8 renderer/native-gles3: Add fallback using a shader
The EGL context can only import and blit an EGLImage if the
backing DMA buffer has a format modifier combination that is advertised
as supported and not marked as "external_only".

When the context can't blit the imported image, we can still paint using
it GL_OES_EGL_image_external using the texture target
GL_TEXTURE_EXTERNAL_OES.

However, treat drivers who doesn't support modifiers at all as if they
do support blitting, if the modifier is 'linear', to avoid regressions.

[jadahl: Make shader path a fallback to allow hardware to utilize copy
engines via blitting]

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6221
Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/2247
Related: https://launchpad.net/bugs/1970291

now only falls back if modifiers are supported, and they mark linear as
export only.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3304>
2024-04-16 21:05:09 +00:00
..
backends renderer/native-gles3: Add fallback using a shader 2024-04-16 21:05:09 +00:00
common common/cogl-drm-formats: Split out format to string helper 2024-04-16 21:05:09 +00:00
compositor edge-resistance: Use current conventions for lists 2024-04-15 16:48:04 +00:00
core core/window: Do not rely on Monitor Numbering 2024-04-16 20:31:23 +00:00
frames Revert "frames: Always initialize _MUTTER_FRAME_EXTENTS to zero" 2024-03-01 10:54:32 +01:00
meta meta/util: Move out debug topics and meta_topic() 2024-04-16 21:05:09 +00:00
tests wayland/single-pixel-buffer: Fix reusing buffer 2024-04-15 17:37:52 +02:00
wayland common/cogl-drm-formats: Split out format to string helper 2024-04-16 21:05:09 +00:00
x11 meta: Update annotations 2024-03-13 12:52:41 +00:00
meson.build common/cogl-drm-formats: Split out format to string helper 2024-04-16 21:05:09 +00:00
meta-private-enum-types.c.in build: Add missing include 2022-08-10 20:28:40 +02:00
meta-private-enum-types.h.in cleanup: Switch to pragma once 2023-08-07 22:24:36 +00:00