[PATCH i-g-t 2/9] tests/kms_plane: Fix some formatting and alignment
Louis Chauvet
louis.chauvet at bootlin.com
Wed Mar 6 17:28:36 UTC 2024
Signed-off-by: Louis Chauvet <louis.chauvet at bootlin.com>
---
tests/kms_plane.c | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/tests/kms_plane.c b/tests/kms_plane.c
index 406aecc04297..dd830e68a177 100644
--- a/tests/kms_plane.c
+++ b/tests/kms_plane.c
@@ -286,7 +286,7 @@ test_plane_position_with_output(data_t *data,
if (primary->drm_plane->plane_id > sprite->drm_plane->plane_id) {
igt_info("primary plane ID (%d) > sprite plane ID (%d), skipping plane %d\n",
- primary->drm_plane->plane_id, sprite->drm_plane->plane_id, plane);
+ primary->drm_plane->plane_id, sprite->drm_plane->plane_id, plane);
return;
}
@@ -373,7 +373,7 @@ test_plane_position(data_t *data, enum pipe pipe)
*/
static void
create_fb_for_mode_panning(data_t *data, drmModeModeInfo *mode,
- struct igt_fb *fb /* out */)
+ struct igt_fb *fb /* out */)
{
unsigned int fb_id;
cairo_t *cr;
@@ -463,7 +463,6 @@ test_plane_panning(data_t *data, enum pipe pipe)
for_each_memory_region(r, data->drm_fd)
if (r->ci.memory_class == I915_MEMORY_CLASS_DEVICE)
mem_size = r->cpu_size;
-
}
if (is_xe_device(data->drm_fd)) {
@@ -705,7 +704,7 @@ static void capture_format_crcs_single(data_t *data, enum pipe pipe,
width, height, encoding, range, &black, fb, true);
igt_display_commit2(&data->display, data->display.is_atomic ?
- COMMIT_ATOMIC : COMMIT_UNIVERSAL);
+ COMMIT_ATOMIC : COMMIT_UNIVERSAL);
igt_remove_fb(data->drm_fd, &old_fb);
@@ -796,7 +795,7 @@ restart_round:
igt_display_t *display = &data->display;
igt_wait_for_vblank(data->drm_fd,
- display->pipes[pipe].crtc_offset);
+ display->pipes[pipe].crtc_offset);
}
}
@@ -1009,7 +1008,7 @@ static bool test_format_plane(data_t *data, enum pipe pipe,
igt_crc_t ref_crc[MAX_CRC_SET][ARRAY_SIZE(colors_extended)];
struct igt_vec tested_formats;
struct format_mod ref = {};
- igt_crc_t* crcset;
+ igt_crc_t *crcset;
bool result = true;
/*
@@ -1352,7 +1351,7 @@ run_tests_for_pipe_plane(data_t *data)
}
igt_describe("verify plane position using two planes to create a partially covered screen and"
- "check for DPMS");
+ "check for DPMS");
igt_subtest_with_dynamic_f("plane-position-hole-dpms") {
data->flags = TEST_POSITION_PARTIALLY_COVERED | TEST_DPMS;
run_test(data, test_plane_position);
@@ -1371,7 +1370,7 @@ run_tests_for_pipe_plane(data_t *data)
}
igt_describe("verify plane panning at bottom-right position using primary plane and executes system"
- "suspend cycles");
+ "suspend cycles");
igt_subtest_with_dynamic_f("plane-panning-bottom-right-suspend") {
data->flags = TEST_PANNING_BOTTOM_RIGHT | TEST_SUSPEND_RESUME;
run_test(data, test_plane_panning);
--
2.43.0
More information about the igt-dev
mailing list