-
Hello, I try to understand how to write compositors with smithay. I started a pet project where I want to create a compositor that draws into the framebuffer. Unfortunately I am stuck here. I was able to create a wayland server and client that can can deal with input events by going through the examples. I think I got how to fill a My understanding of wayland and smithay is very basic at this point. I think I need to implement a custom Renderer and access a DumbBuffer but I don't understand how and after hours of reading and searching I think i just need some help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Modern drm-drivers don't really have the concept of a framebuffer anymore. I recommend rather going with something like smithays
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
Yes, although we do have a software renderer (based on pixman) these days, so I went ahead and closed that issue.
You don't. You can deal with Have you looked at But it sounds to me like you already figured out a good amount of stuff, regarding the drm device. Any more specific questions? Also I highly recommend joining our matrix-chat instead (see the README), where lots of people would be more than happy to get you started. :) |
Beta Was this translation helpful? Give feedback.
Modern drm-drivers don't really have the concept of a framebuffer anymore. I recommend rather going with something like smithays
DrmDevice
.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
.Yes, although we do have a software renderer (based on pixman) these days, so I went ahead and closed that issue.