Skip to contentSkip to conversation

drm/tests: Fix swapped drm_framebuffer tests parameter names

PATCH Applied Carlos Eduardo Gallo Filho 2 participants 2 messages Jun 24, 2023 – Jun 28, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 drm/tests: Fix swapped drm_framebuffer tests parameter names

Swap tests parameters names so they actually reflect what is being tested.

v1: https://lore.kernel.org/all/[email protected]/
v2: Simplified commit message.

---
 drivers/gpu/drm/tests/drm_framebuffer_test.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/tests/drm_framebuffer_test.c +2 -2
index df235b7fdaa5..f759d9f3b76e 100644
@@ -178,13 +178,13 @@ static const struct drm_framebuffer_test drm_framebuffer_create_cases[] = {
 		 .handles = { 1, 1, 1 }, .pitches = { 600, 600, 600 },
 	}
 },
-{ .buffer_created = 1, .name = "YVU420 Normal sizes",
+{ .buffer_created = 1, .name = "YVU420 DRM_MODE_FB_MODIFIERS set without modifier",
 	.cmd = { .width = 600, .height = 600, .pixel_format = DRM_FORMAT_YVU420,
 		 .handles = { 1, 1, 1 }, .flags = DRM_MODE_FB_MODIFIERS,
 		 .pitches = { 600, 300, 300 },
 	}
 },
-{ .buffer_created = 1, .name = "YVU420 DRM_MODE_FB_MODIFIERS set without modifier",
+{ .buffer_created = 1, .name = "YVU420 Normal sizes",
 	.cmd = { .width = 600, .height = 600, .pixel_format = DRM_FORMAT_YVU420,
 		 .handles = { 1, 1, 1 }, .pitches = { 600, 300, 300 },
 	}
Signature · 1 line
2.39.3
Applied
#1 lore raw
Quoted 8 lines · Carlos Eduardo Gallo Filho

Swap tests parameters names so they actually reflect what is being tested.

v1: https://lore.kernel.org/all/[email protected]/
v2: Simplified commit message.

Applied to drm-misc/drm-misc-next. Thanks!

Best Regards,
- Maíra

Quoted 24 lines
---
  drivers/gpu/drm/tests/drm_framebuffer_test.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/tests/drm_framebuffer_test.c +2 -2
index df235b7fdaa5..f759d9f3b76e 100644
@@ -178,13 +178,13 @@ static const struct drm_framebuffer_test drm_framebuffer_create_cases[] = {
  		 .handles = { 1, 1, 1 }, .pitches = { 600, 600, 600 },
  	}
  },
-{ .buffer_created = 1, .name = "YVU420 Normal sizes",
+{ .buffer_created = 1, .name = "YVU420 DRM_MODE_FB_MODIFIERS set without modifier",
  	.cmd = { .width = 600, .height = 600, .pixel_format = DRM_FORMAT_YVU420,
  		 .handles = { 1, 1, 1 }, .flags = DRM_MODE_FB_MODIFIERS,
  		 .pitches = { 600, 300, 300 },
  	}
  },
-{ .buffer_created = 1, .name = "YVU420 DRM_MODE_FB_MODIFIERS set without modifier",
+{ .buffer_created = 1, .name = "YVU420 Normal sizes",
  	.cmd = { .width = 600, .height = 600, .pixel_format = DRM_FORMAT_YVU420,
  		 .handles = { 1, 1, 1 }, .pitches = { 600, 300, 300 },
  	}