How to test whether a buffer is in linear format

Sebastian Krzyszkowiak dos at dosowisko.net
Sun Aug 7 23:37:18 UTC 2022


On 8/6/22, Hoosier, Matt <Matt.Hoosier at garmin.com> wrote:
> Any idea what’s up with some compositors adding code to infer
> DRM_FORMAT_MOD_LINEAR semantics when the buffer’s modifiers are set to 0?
> Wlroots, for example, added this as a “safety net for drm drivers not
> announcing modifiers”.
>
> https://source.puri.sm/Librem5/wlroots/-/merge_requests/63

For the record, that's an old piece of code from a branch that hasn't
been used for a long time already, so don't pay attention to it. See
https://github.com/swaywm/wlroots/pull/2090 for details.

Cheers,
Sebastian


More information about the wayland-devel mailing list