summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-07-07 15:08:33 +0100
committerDamien Lespiau <damien.lespiau@intel.com>2014-07-07 17:58:26 +0100
commit4f83c4efa85bdb1cfadf0e4b44588ec581f2682b (patch)
tree5c77017704a0ae60d6697e9305215418b6155f92 /lib
parent089e8d0a6b4b702ada745e948ae4303fd9457389 (diff)
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 <damien.lespiau@intel.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/igt_kms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index d792008c..82bdec50 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;
}