summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-10-16 15:34:53 +0200
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>2017-10-24 17:10:27 +0200
commitcf6b5a4221e3e8d14dd39011a746e5be909e5928 (patch)
treef0e305e07c2b82d6a5eb1e63d2ac217064dcbc73
parente5f7fac9f120b0dcbf370c681b8872b8c29bf890 (diff)
lib/igt_kms: Only print changed mode objects during atomic commit.
When we only print mode objects that have changed properties, we reduce a lot of the spam. Fortunately we have a single bitfield now that gets printed when something is changed. Use that to decrease the amount of spam. Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--lib/igt_kms.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/igt_kms.c b/lib/igt_kms.c
index 1c50484a..1d26b8dd 100644
--- a/lib/igt_kms.c
+++ b/lib/igt_kms.c
@@ -2654,10 +2654,12 @@ static int igt_atomic_commit(igt_display_t *display, uint32_t flags, void *user_
/*
* Add CRTC Properties to the property set
*/
- igt_atomic_prepare_crtc_commit(pipe_obj, req);
+ if (pipe_obj->changed)
+ igt_atomic_prepare_crtc_commit(pipe_obj, req);
for_each_plane_on_pipe(display, pipe, plane) {
- igt_atomic_prepare_plane_commit(plane, pipe_obj, req);
+ if (plane->changed)
+ igt_atomic_prepare_plane_commit(plane, pipe_obj, req);
}
}
@@ -2665,7 +2667,7 @@ static int igt_atomic_commit(igt_display_t *display, uint32_t flags, void *user_
for (i = 0; i < display->n_outputs; i++) {
output = &display->outputs[i];
- if (!output->config.connector)
+ if (!output->config.connector || !output->changed)
continue;
LOG(display, "%s: preparing atomic, pipe: %s\n",