mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-19 06:47:02 -04:00
render/pixel-format: add get_drm_{format,modifier}_description
We need to log information about DRM formats/modifiers in quite a few places. Make this easier with these helper functions.
This commit is contained in:
parent
18139f4d87
commit
eb48d5e9e6
6 changed files with 68 additions and 32 deletions
|
|
@ -25,4 +25,7 @@ bool pixel_format_info_check_stride(const struct wlr_pixel_format_info *info,
|
|||
uint32_t convert_wl_shm_format_to_drm(enum wl_shm_format fmt);
|
||||
enum wl_shm_format convert_drm_format_to_wl_shm(uint32_t fmt);
|
||||
|
||||
char *get_drm_format_description(uint32_t format);
|
||||
char *get_drm_modifier_description(uint64_t modifier);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue