gbm_bo_create_with_modifiers implies the GBM_BO_USE_SCANOUT flag, which disables complex (tiled or compressed) formats that cannot be used for scanout. This reduces performance. We don't need to scan out buffers created for sceencasting/etc., so this is suboptimal. By switching to gbm_bo_create_with_modifiers2, we can explicitly pass the flags and avoid falling back to lower performance formats. Also add a config check and fall back to the old version, to retain compatibility with older mesa versions.remotes/origin/work/sitter/rebind-keyboards
parent
f5a80f0d3c
commit
a508149882
3 changed files with 15 additions and 0 deletions
Loading…
Reference in new issue