[igt-dev] [PATCH i-g-t] i915/i915_pm_lpsp: Adopt atomic commit style
Anshuman Gupta
anshuman.gupta at intel.com
Tue Sep 15 06:59:55 UTC 2020
Use atomic commit style for lpsp igt test commit.
We want to enable a mode with only PIPE_A for lpsp
test, atomic commit make sure all others PIPES
are disabled with single commit.
Cc: Ankit Nautiyal <ankit.k.nautiyal at intel.com>
Signed-off-by: Anshuman Gupta <anshuman.gupta at intel.com>
---
tests/i915/i915_pm_lpsp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/i915/i915_pm_lpsp.c b/tests/i915/i915_pm_lpsp.c
index 4a187810..7902c853 100644
--- a/tests/i915/i915_pm_lpsp.c
+++ b/tests/i915/i915_pm_lpsp.c
@@ -114,7 +114,8 @@ static void setup_lpsp_output(data_t *data)
LOCAL_DRM_FORMAT_MOD_NONE,
&data->fb);
igt_plane_set_fb(primary, &data->fb);
- igt_display_commit(&data->display);
+ igt_display_commit2(&data->display, data->display.is_atomic ?
+ COMMIT_ATOMIC : COMMIT_LEGACY);
}
static void test_cleanup(data_t *data)
--
2.26.2
More information about the igt-dev
mailing list