backend/drm: drop wlr_drm_layer.pending_{width,height}

No need to store this info in struct wlr_drm_layer. We can just
extract the size when we need it.
This commit is contained in:
Simon Ser 2023-02-21 10:31:39 +01:00 committed by Isaac Freund
parent 7215bd1e0f
commit 8338d17d7e
3 changed files with 6 additions and 8 deletions

View file

@ -564,11 +564,8 @@ static bool drm_connector_set_pending_layer_fbs(struct wlr_drm_connector *conn,
}
if (layer_state->buffer != NULL) {
layer->pending_width = layer_state->buffer->width;
layer->pending_height = layer_state->buffer->height;
drm_fb_import(&layer->pending_fb, drm, layer_state->buffer, NULL);
} else {
layer->pending_width = layer->pending_height = 0;
drm_fb_clear(&layer->pending_fb);
}
}