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

DrmCompositor direct bind #1671

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

DrmCompositor direct bind #1671

wants to merge 4 commits into from

Conversation

cmeissl
Copy link
Collaborator

@cmeissl cmeissl commented Mar 9, 2025

This PR replaces the constraint on Bind<Dmabuf> for rendering in DrmCompositor with a new trait AsRenderTarget.
With the new trait we can implement Allocator and Renderer specific render targets.

For now it includes a default implementation for GbmAllocator -> Dmabuf for all renderer supporting Bind<Dmabuf>.
And a specialized implementation for directly rendering into DumbBuffers allocated through DumbAllocator with the PixmanRenderer.

@cmeissl cmeissl force-pushed the feature/bind_compositor branch 4 times, most recently from b4a5054 to 9d3c382 Compare March 15, 2025 21:59
…itor

this replaces the constraint on Dmabuf rendering with a new Trait
`AsRenderTarget` to allow binding different render target directly
and specific to backends and renderer
@cmeissl cmeissl force-pushed the feature/bind_compositor branch from 9d3c382 to 1a2faee Compare March 15, 2025 22:00
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