aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm/util.h
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2019-01-29 12:04:12 +0100
committeremersion <contact@emersion.fr>2019-01-29 12:04:12 +0100
commitee293fab58da190943426a6d23380dd04200a4ff (patch)
treeac97a35fcc72b791dd4ed63ff55fcc2f375d3f88 /include/backend/drm/util.h
parent018727b1fc41dcd739ab464c84581c44dd1497ca (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/util.h')
-rw-r--r--include/backend/drm/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/backend/drm/util.h b/include/backend/drm/util.h
index e159d716..2491e703 100644
--- a/include/backend/drm/util.h
+++ b/include/backend/drm/util.h
@@ -14,7 +14,7 @@ void parse_edid(struct wlr_output *restrict output, size_t len,
// Returns the string representation of a DRM output type
const char *conn_get_name(uint32_t type_id);
// Returns the DRM framebuffer id for a gbm_bo
-uint32_t get_fb_for_bo(struct gbm_bo *bo);
+uint32_t get_fb_for_bo(struct gbm_bo *bo, uint32_t drm_format);
// Part of match_obj
enum {