V3: Removed tranche sorting logic. Removed dmabuf dependency on gbm. V2: Decided to put the commits after the batch of GL ones (the first 2 concern GL).
Changes to consider:
- Add support to test for
gbm_surface_create_with_modifiers2
in configure.ac. - Add interface function
wayland_dmabuf_feedback_set_drm_device
to set the rendering device opened by Wine Wayland. - Add private function
dmabuf_set_gbm_flags
to set gbm_bo flags from tranche. - Add private function
dmabuf_feedback_sort_tranches
to create a list of tranches sorted by preference. No memory allocation is done.