backend/drm: remove format arg from drm_plane_init_surface

This was always set to ARGB8888.
This commit is contained in:
Simon Ser 2021-05-31 19:35:25 +02:00
parent 9e9be83a58
commit e06ea4e84a
3 changed files with 7 additions and 8 deletions

View file

@ -193,7 +193,9 @@ static struct wlr_drm_format *create_linear_format(uint32_t format) {
bool drm_plane_init_surface(struct wlr_drm_plane *plane,
struct wlr_drm_backend *drm, int32_t width, uint32_t height,
uint32_t format, bool with_modifiers) {
bool with_modifiers) {
uint32_t format = DRM_FORMAT_ARGB8888;
if (!wlr_drm_format_set_has(&plane->formats, format, DRM_FORMAT_MOD_INVALID)) {
const struct wlr_pixel_format_info *info =
drm_get_pixel_format_info(format);