kmsgrab: Support multi-plane formats

This commit is contained in:
David Rosca
2021-08-27 12:44:49 +02:00
parent 3840b3c561
commit 08f056bb3f
4 changed files with 200 additions and 68 deletions

View File

@@ -201,12 +201,13 @@ KITTY_USING_MOVE_T(ctx_t, (std::tuple<display_t::pointer, EGLContext>), , {
});
struct surface_descriptor_t {
int fd;
int width;
int height;
int offset;
int pitch;
int fds[4];
uint32_t fourcc;
uint64_t modifier;
uint32_t pitches[4];
uint32_t offsets[4];
};
display_t make_display(gbm::gbm_t::pointer gbm);
@@ -264,4 +265,4 @@ public:
bool fail();
} // namespace egl
#endif
#endif