Skip to content
Snippets Groups Projects
Commit c0e13cbf authored by Simon Ser's avatar Simon Ser Committed by Michel Dänzer
Browse files

xwayland: only use linux-dmabuf if format/modifier was advertised


Previously, linux-dmabuf was used unconditionally if the buffer had a
modifier. However creating a linux-dmabuf buffer with a format/modifier
which hasn't been advertised will fail.

Change xwl_glamor_gbm_get_wl_buffer_for_pixmap to use linux-dmabuf when
the format/modifier has been advertised only.

Signed-off-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
Closes: #1035


Tested-by: default avatarEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
Reviewed-by: default avatarMichel Dänzer <mdaenzer@redhat.com>
parent 9c8d2744
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment