mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
kms/impl-device/simple: Get the buffer handle from MetaDrmBuffer
This avoids buffer implementation specific code where it shouldn't matter. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2275>
This commit is contained in:
parent
22d11eb9cb
commit
ea39142da2
@ -1209,20 +1209,9 @@ process_cursor_plane_assignment (MetaKmsImplDevice *impl_device,
|
||||
height = plane_assignment->dst_rect.height;
|
||||
|
||||
if (plane_assignment->buffer)
|
||||
{
|
||||
MetaDrmBufferGbm *buffer_gbm =
|
||||
META_DRM_BUFFER_GBM (plane_assignment->buffer);
|
||||
struct gbm_bo *bo;
|
||||
union gbm_bo_handle handle;
|
||||
|
||||
bo = meta_drm_buffer_gbm_get_bo (buffer_gbm);
|
||||
handle = gbm_bo_get_handle (bo);
|
||||
handle_u32 = handle.u32;
|
||||
}
|
||||
handle_u32 = meta_drm_buffer_get_handle (plane_assignment->buffer);
|
||||
else
|
||||
{
|
||||
handle_u32 = 0;
|
||||
}
|
||||
handle_u32 = 0;
|
||||
|
||||
meta_topic (META_DEBUG_KMS,
|
||||
"[simple] Setting HW cursor of CRTC %u (%s) to %u "
|
||||
|
Loading…
Reference in New Issue
Block a user