Skip to content

backend/drm: fix GBM format mismatch

Simon Ser requested to merge github/fork/emersion/gbm-fmt-mismatch into master

We create the EGL config with GBM_FORMAT_ARGB8888, but then initialize GBM BOs with GBM_FORMAT_XRGB8888. This mismatch confuses Mesa.

Instead, we can always use GBM_FORMAT_ARGB8888, and use DRM_FORMAT_XRGB8888 when calling drmModeAddFB2.

Fixes https://github.com/swaywm/wlroots/issues/1438

Merge request reports