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:
Simon Ser 2023-05-10 14:27:53 +02:00
parent 18139f4d87
commit eb48d5e9e6
6 changed files with 68 additions and 32 deletions

View file

@ -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