Skip to content

Screencast: fix renegotiation when client fails to use DMABuf modifiers

Jan Grulich requested to merge grulich/kwin:modifiers-fix into master

When client fails to import a DMABuf with a certain modifier, it will remove it from offerings on his side and offer a new set of modifiers for us to use. In case the list ends up being small enough that even we won't be able to use any of the modifiers, we would still keep these modifiers on our list and offering them to the client. With this we would end up in a loop renegotiating and never actually fallback to use MemFD buffers instead. We should also offer modifier-less DMABufs as in the past. Using these we just need to avoid offering them as they should be used as the last option.

BUG: 448839

Edited by Jan Grulich

Merge request reports