Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allocate buffers with supported modifiers #236

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

nowrep
Copy link
Contributor

@nowrep nowrep commented Sep 18, 2023

Allocate buffers with supported modifiers

Use dmabuf feedback to get supported modifiers. Using tiled layout is
more efficient than linear and should give better performance.

Draft for now because it requires #235 and also it's unclear if this causes any issues with Intel. Ideally we would query VAAPI for supported modifiers, however no driver (not even Intel) implements this. It's not an issue with Mesa/AMD because it will import any supported modifier without an issue, but I think Intel driver is more picky here. We can try to filter out problematic modifiers ourselves, or simply disable this path for Intel.

wl-drm is a private protocol and while all compositors support it now,
it may be removed in future.

This adds dependency on libdrm to be able to get the device path from
dev_t returned from dmabuf feedback main_device.
Use dmabuf feedback to get supported modifiers. Using tiled layout is
more efficient than linear and should give better performance.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant