Skip to content

xwayland/glamor/gbm: Set GBM_BO_USE_LINEAR if only LINEAR modifier is supported

José Expósito requested to merge (removed):issue-1438 into master

Some drivers might not support explicit format modifiers. On these drivers gbm_bo_create_with_modifiers() will fail and the gbm_bo_create() code path will be used instead.

In this case, if the LINEAR modifier is advertised (and the INVALID modifier is not) add the GBM_BO_USE_LINEAR flag.

Closes: #1438 (closed)

cc @daenzer @ofourdan

Merge request reports