From 02231367123532e85c8ff81fe74bd2693db42b34 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Sun, 20 Jun 2021 18:47:10 +0200 Subject: [PATCH] platforms/drm: fix mistake in DrmGbmBuffer When gbm_bo_get_handle_for_plane isn't supported or doesn't work we'd be passing the buffer format as its handle to drmModeAddFB(2). --- src/plugins/platforms/drm/drm_buffer_gbm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/platforms/drm/drm_buffer_gbm.cpp b/src/plugins/platforms/drm/drm_buffer_gbm.cpp index 8cd891010d..5460d90cee 100644 --- a/src/plugins/platforms/drm/drm_buffer_gbm.cpp +++ b/src/plugins/platforms/drm/drm_buffer_gbm.cpp @@ -137,7 +137,7 @@ void DrmGbmBuffer::initialize() modifiers[i] = gbm_bo_get_modifier(m_bo); } } else { - handles[0] = gbm_bo_get_format(m_bo); + handles[0] = gbm_bo_get_handle(m_bo).u32; strides[0] = gbm_bo_get_stride(m_bo); modifiers[0] = DRM_FORMAT_MOD_INVALID; }