black screen and "Failed to add framebuffer" error in wayland compositors when not filtering dmabuf formats with ccs modifiers on intel graphics when upgrading to mesa 24.3.0
system information
System:
Host: maytop Kernel: 6.12.1-arch1-1 arch: x86_64 bits: 64 compiler: gcc
v: 14.2.1
Desktop: Hyprland v: 0.45.2 dm: N/A Distro: Arch Linux
CPU:
Info: 12-core (4-mt/8-st) model: 13th Gen Intel Core i5-1340P bits: 64
type: MST AMCP arch: Raptor Lake rev: 2 cache: L1: 1.1 MiB L2: 9 MiB
L3: 12 MiB
Speed (MHz): avg: 1122 min/max: 400/4600:3400 cores: 1: 1122 2: 1122
3: 1122 4: 1122 5: 1122 6: 1122 7: 1122 8: 1122 9: 1122 10: 1122 11: 1122
12: 1122 13: 1122 14: 1122 15: 1122 16: 1122 bogomips: 70064
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
Device-1: Intel Raptor Lake-P [UHD Graphics] vendor: Framework driver: i915
v: kernel arch: Gen-13 ports: active: eDP-1 empty: DP-1, DP-2, DP-3, DP-4
bus-ID: 00:02.0 chip-ID: 8086:a720
Display: wayland server: Xwayland v: 24.1.4 compositor: Hyprland v: 0.45.2
driver: gpu: i915 display-ID: 2
Monitor-1: eDP-1 model: BOE Display 0x0bca res: 2256x1504 dpi: 201
diag: 343mm (13.5")
API: Vulkan v: 1.3.295 surfaces: xcb,xlib,wayland device: 0
type: integrated-gpu driver: mesa intel device-ID: 8086:a720
API: EGL Message: EGL data requires eglinfo. Check --recommends.
describe the issue
after upgrading to mesa 24.3.0, opening hyprland gives me a black screen, and the hyprland logs (attached below) keep spamming "drm: No format for output" and then "no buffer or mismatched format"
i had a similar issue in my own wayland compositor, where it would panic on creation of the DrmCompositor
with the message (logs attached aswell) "Failed to add framebuffer", "os error 22 (Invalid argument)", but i managed to fix it by filtering out dmabuf formats with ccs modifiers.
regression
when downgrading to mesa 24.2.7 everything works as expected