screencast: Don't skip the last valid modifier
Since modifiers are listed in preference order, the last one is usually the most general fallback. If we drop it, we risk winding up with no usable modifiers. On Apple GPUs with the Asahi driver, the received modifiers are usually compressed, twiddled, and linear. Dropping linear means we only request complex formats. But then gbm_bo_create_with_modifiers always requests a scanout-capable BO which cannot support complex formats, and we wind up with nothing. This breaks screencasting on these platforms.master
parent
f37acaff54
commit
f5a80f0d3c
Loading…
Reference in New Issue