emersion / xdg-desktop-portal-wlr

xdg-desktop-portal backend for wlroots
MIT License
591 stars 56 forks source link

Improve Interoperability between APIs using explicit and implicit modifiers #200

Closed columbarius closed 1 year ago

columbarius commented 2 years ago

When having to share buffers between modifier aware APIs and modifier unaware APIs the common denominator is to create a buffer with linear layout. This MR announces support for a linear modifier when the compositor only supports implicit modifiers using the GBM_BO_USE_LINEAR flag to create a buffer with linear layout.

columbarius commented 1 year ago

wlroots now announces both linear and invalid if the GPU only supports invalid modifiers, so we just need the fallback.