From: Damien Lespiau Subject: [PATCH] lib: Reset 'position_changed' after a drmModeSetCrtc() Date: Mon, 7 Jul 2014 18:01:18 +0100 Message-ID: <1404752478-1127-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 49BD86E461 for ; Mon, 7 Jul 2014 10:01:32 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org 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 --- lib/igt_kms.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 1.8.3.1