diff options
author | emersion <contact@emersion.fr> | 2019-01-29 12:04:12 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-01-29 12:04:12 +0100 |
commit | ee293fab58da190943426a6d23380dd04200a4ff (patch) | |
tree | ac97a35fcc72b791dd4ed63ff55fcc2f375d3f88 /include/backend/drm/renderer.h | |
parent | 018727b1fc41dcd739ab464c84581c44dd1497ca (diff) |
backend/drm: fix GBM format mismatch
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
Diffstat (limited to 'include/backend/drm/renderer.h')
-rw-r--r-- | include/backend/drm/renderer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h index 575758de..25b07b97 100644 --- a/include/backend/drm/renderer.h +++ b/include/backend/drm/renderer.h @@ -16,6 +16,8 @@ struct wlr_drm_renderer { struct gbm_device *gbm; struct wlr_egl egl; + uint32_t gbm_format; + struct wlr_renderer *wlr_rend; }; |