drm-buffer: Keep track of handle as well

This handle is used by the legacy KMS API; lets avoid having to have GBM
specific code where this is done by letting the MetaDrmBuffer API, that
already has this information, expose it.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2275>
This commit is contained in:
Jonas Ådahl
2022-02-08 15:58:33 +01:00
committed by Marge Bot
parent d19700604b
commit 22d11eb9cb
6 changed files with 17 additions and 0 deletions

View File

@ -248,6 +248,7 @@ init_dumb_buffer (MetaDrmBufferDumb *buffer_dumb,
.width = width,
.height = height,
.format = format,
.handle = create_arg.handle,
.handles = { create_arg.handle },
.strides = { create_arg.pitch },
};