Don't crash when KMS rejects client FB

If the client provides a DMA-BUF that cannot be scanned out, don't
crash. We should just fallback to composition instead.
This commit is contained in:
Simon Ser 2021-02-01 15:41:00 +01:00
parent 1b38faf9fd
commit 17c74e3e6b

View file

@ -609,7 +609,6 @@ import_commit ( struct wlr_buffer *buf, struct wlr_dmabuf_attributes *dmabuf, co
if ( BIsNested() == False )
{
commit.fb_id = drm_fbid_from_dmabuf( &g_DRM, buf, dmabuf );
assert( commit.fb_id != 0 );
}
commit.vulkanTex = vulkan_create_texture_from_dmabuf( dmabuf );