aboutsummaryrefslogtreecommitdiff
path: root/backend/drm/libliftoff.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/drm/libliftoff.c')
-rw-r--r--backend/drm/libliftoff.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/backend/drm/libliftoff.c b/backend/drm/libliftoff.c
index a6afb1f9..80410f43 100644
--- a/backend/drm/libliftoff.c
+++ b/backend/drm/libliftoff.c
@@ -324,14 +324,9 @@ static bool crtc_commit(struct wlr_drm_connector *conn,
uint32_t fb_damage_clips = 0;
if ((state->base->committed & WLR_OUTPUT_STATE_DAMAGE) &&
- pixman_region32_not_empty(&state->base->damage) &&
crtc->primary->props.fb_damage_clips != 0) {
- int rects_len;
- const pixman_box32_t *rects = pixman_region32_rectangles(&state->base->damage, &rects_len);
- if (drmModeCreatePropertyBlob(drm->fd, rects,
- sizeof(*rects) * rects_len, &fb_damage_clips) != 0) {
- wlr_log_errno(WLR_ERROR, "Failed to create FB_DAMAGE_CLIPS property blob");
- }
+ create_fb_damage_clips_blob(drm, state->primary_fb,
+ &state->base->damage, &fb_damage_clips);
}
bool prev_vrr_enabled =