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. (cherry picked from commit f5a80f0d)
parent
4e6b7c26
Please register or sign in to comment