From: Damien Lespiau Date: Mon, 7 Jul 2014 14:08:33 +0000 (+0100) Subject: lib: Reset 'position_changed' after a drmModeSetCrtc() X-Git-Tag: intel-gpu-tools-1.8~238 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4f83c4efa85bdb1cfadf0e4b44588ec581f2682b;p=platform%2Fupstream%2Fintel-gpu-tools.git lib: Reset 'position_changed' after a drmModeSetCrtc() So the next commit won't trigger a drmModeSetCrtc() if the primary plane doesn't have any update needing it. This shouldn't be a problem at the moment as we don't allow the primary plane to be of a different size than the CRTC viewport, but it will most likely change in the future and we don't want to have that bug there. Signed-off-by: Damien Lespiau --- diff --git a/lib/igt_kms.c b/lib/igt_kms.c index d792008..82bdec5 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -1025,6 +1025,7 @@ static int igt_primary_plane_commit_legacy(igt_plane_t *primary, primary->pipe->enabled = (fb_id != 0); primary->fb_changed = false; + primary->position_changed = false; return 0; }