Skip to content

backends/drm: fix failing atomic commits with disabled outputs

Xaver Hugl requested to merge work/fix-allocation-failure into master

There were two issues:

  1. KWin did not handle allocations that fail too well. If it can't create any gbm surface for an output, it crashes. This is now mostly alleviated, but it will still crash if it has completely no surface for rendering (to be fixed with a future patch)
  2. the backend tried to create a gbm surface even for outputs that were disabled, which have no supported formats, which made all atomic tests fail if you had a disabled output. This is now fixed as well

BUG: 452572

cc @nicolasfella

Edited by Xaver Hugl

Merge request reports