weston-simple-dmabuf-feedback crashes on KDE
On recent Kwin 5.24 weston-simple-dmabuf-feedback
crashes with the following error:
error: INITIAL_BUFFER_FORMAT not supported by the hardware
Here we assume that the first non-scanout tranche includes DRM_FORMAT_XRGB8888
. However Kwin orders formats into several tranches like this:
compositor sent main_device event for dma-buf feedback - /dev/dri/renderD128
├──────target_device for tranche - /dev/dri/renderD128
│ └scanout tranche? no
│ ├────────tranche format/modifier pair - format ABGR2101010, modifier AMD_GFX10_RBPLUS,GFX9_64K_R_X,PIPE_XOR_BITS=4,PACKERS=3 (0x200000018801b03)
│ ├────────...
│ └end of tranche
├──────target_device for tranche - /dev/dri/renderD128
│ └scanout tranche? no
│ ├────────tranche format/modifier pair - format ABGR8888, modifier AMD_GFX10_RBPLUS,GFX9_64K_R_X,PIPE_XOR_BITS=4,PACKERS=3 (0x200000018801b03)
│ ├────────...
│ └end of tranche
├──────target_device for tranche - /dev/dri/renderD128
│ └scanout tranche? no
│ ├────────tranche format/modifier pair - format XBGR16161616F, modifier AMD_GFX10_RBPLUS,GFX9_64K_R_X,PIPE_XOR_BITS=4,PACKERS=3 (0x200000018801b03)
│ ├────────...
│ └end of tranche
└end of dma-buf feedback
That is in accordance with the spec and thus should be supported.