Skip to content

Creating a very basic wayland compositor that draws directly to the framebuffer #1376

Closed Answered by Drakulix
floers asked this question in Q&A
Discussion options

You must be logged in to vote

draws into the framebuffer.

Modern drm-drivers don't really have the concept of a framebuffer anymore. I recommend rather going with something like smithays DrmDevice.

But I don't see how to get this buffer to the server and actual deal with it there.

So what happens on the wayland-connection would be to attach said buffer to a surface and commit said surface. The example you linked does that at the end of draw.

If I understand this correct I should be able to create a basic setup that deals with just "fullscreen" clients without this feature being implemented?

Yes, although we do have a software renderer (based on pixman) these days, so I went ahead and closed that issue.

I think …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@floers
Comment options

@Drakulix
Comment options

@floers
Comment options

Answer selected by floers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants