compositor-drm: Only request vblank events if needed

If the sprite is disabled and we're not enabling it on the next frame,
nothing is done in the vblank handler, so there's no need to ask for a
vblank event.
dev
Ander Conselvan de Oliveira 12 years ago committed by Kristian Høgsberg
parent 3b2bd44d92
commit 2f7a30b07e
  1. 3
      src/compositor-drm.c

@ -391,7 +391,8 @@ drm_output_repaint(struct weston_output *output_base,
.request.sequence = 1, .request.sequence = 1,
}; };
if (!drm_sprite_crtc_supported(output_base, s->possible_crtcs)) if ((!s->fb_id && !s->pending_fb_id) ||
!drm_sprite_crtc_supported(output_base, s->possible_crtcs))
continue; continue;
ret = drmModeSetPlane(compositor->drm.fd, s->plane_id, ret = drmModeSetPlane(compositor->drm.fd, s->plane_id,

Loading…
Cancel
Save