[Mesa-dev] [PATCH] egl/wayland: Don't use dmabuf with no modifiers

Daniel Stone daniel at fooishbar.org
Mon Oct 2 16:11:08 UTC 2017


Hey Emil,

On 2 October 2017 at 17:08, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 2 October 2017 at 16:55, Daniel Stone <daniels at collabora.com> wrote:
>> The dmabuf interface requires a valid modifier to be sent. If we don't
>> explicitly get a modifier from the driver, we can't know what to send;
>> it must be inferred from legacy side-channels (or assumed to linear, if
>> none exists).
>>
>> If we have no modifier, then we can only have a single-plane format
>> anyway, so fall back to the old wl_drm buffer import path.
>
> IIRC one my earlier questions was about this. The reply was that
> dmabuf should work fine with single-plane formats.

Should but doesn't, at least with Weston. :P Not sure about Mutter.

Either way, given that one of the primary testing targets is broken,
and we get no real advantage from using the dmabuf interface here,
might as well just revert it for now.

> Is that the root issue or it's the missing queryImage() error handling?
>
> Can I suggest separating the two?

OK.

>> Fixes: a65db0ad1c ("st/dri: don't expose modifiers in EGL if the driver doesn't implement them")
> I think this should be
> Fixes: 02cc3593727 ("egl/wayland: Use linux-dmabuf interface for buffers")

I'm pretty sure it only came up after Marek's change? I can try to
bisect and see I guess, but yeah. Might as well take both of them,
that way stable@ should notice and pull in Marek's fix, which is also
entirely valid.

Cheers,
Daniel


More information about the mesa-dev mailing list