render-device: Update DMA-BUF allocation API to allow modifiers
meta_render_device_gbm_allocate_dma_buf() function is updated to take a list of modifiers. If no modifiers are specified, the modifier is selected by the allocator, and implicit modifiers are used to import the created DMA-BUF. Co-authored-by: Jonas Ådahl <jadahl@gmail.com> Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3537>
This commit is contained in:
@ -42,6 +42,8 @@ MetaDrmBuffer * meta_render_device_allocate_dma_buf (MetaRenderDevice *render
|
||||
int width,
|
||||
int height,
|
||||
uint32_t format,
|
||||
uint64_t *modifiers,
|
||||
int n_modifiers,
|
||||
MetaDrmBufferFlags flags,
|
||||
GError **error);
|
||||
|
||||
|
Reference in New Issue
Block a user