igt-dev.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t 1/2] tests/kms_plane_scaling: Allow DRM_FORMAT_RGB565 rotation on gen>=11
@ 2018-08-27 12:27 Juha-Pekka Heikkila
  2018-08-27 12:27 ` [igt-dev] [PATCH i-g-t 2/2] tests/kms_rotation_crc: Fix bad-pixel-format not to be run on gen11 and later Juha-Pekka Heikkila
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Juha-Pekka Heikkila @ 2018-08-27 12:27 UTC (permalink / raw)
  To: igt-dev

Test DRM_FORMAT_RGB565 rotation when gen is 11 or higher.

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
---
 tests/kms_plane_scaling.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index 2f19a42..7c64ed1 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -156,10 +156,10 @@ static const igt_rotation_t rotations[] = {
 	IGT_ROTATION_270,
 };
 
-static bool can_rotate(unsigned format)
+static bool can_rotate(data_t *d, unsigned format)
 {
 	if (format == DRM_FORMAT_C8 ||
-	    format == DRM_FORMAT_RGB565)
+	    (intel_gen(d->devid) < 11 && format == DRM_FORMAT_RGB565))
 		return false;
 
 	return true;
@@ -180,7 +180,8 @@ static void test_scaler_with_rotation_pipe(data_t *d, enum pipe pipe,
 			igt_rotation_t rot = rotations[i];
 			for (int j = 0; j < plane->drm_plane->count_formats; j++) {
 				unsigned format = plane->drm_plane->formats[j];
-				if (igt_fb_supported_format(format) && can_rotate(format))
+				if (igt_fb_supported_format(format) &&
+				    can_rotate(d, format))
 					check_scaling_pipe_plane_rot(d, plane, format,
 								     LOCAL_I915_FORMAT_MOD_Y_TILED,
 								     pipe, output, rot);
-- 
2.7.4

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2018-09-06 10:51 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-27 12:27 [igt-dev] [PATCH i-g-t 1/2] tests/kms_plane_scaling: Allow DRM_FORMAT_RGB565 rotation on gen>=11 Juha-Pekka Heikkila
2018-08-27 12:27 ` [igt-dev] [PATCH i-g-t 2/2] tests/kms_rotation_crc: Fix bad-pixel-format not to be run on gen11 and later Juha-Pekka Heikkila
2018-08-27 13:14   ` Mika Kahola
2018-08-27 16:33     ` Rodrigo Vivi
2018-08-28 13:38       ` Juha-Pekka Heikkila
2018-08-30  0:22         ` Rodrigo Vivi
2018-08-29 13:12   ` [igt-dev] [PATCH i-g-t] " Juha-Pekka Heikkila
2018-09-06 10:51     ` Mika Kahola
2018-08-27 12:48 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/2] tests/kms_plane_scaling: Allow DRM_FORMAT_RGB565 rotation on gen>=11 Patchwork
2018-08-27 13:10 ` [igt-dev] [PATCH i-g-t 1/2] " Mika Kahola
2018-08-28 11:06 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/2] " Patchwork
2018-08-30  8:07 ` [igt-dev] ✗ Fi.CI.IGT: failure for series starting with [i-g-t,1/2] tests/kms_plane_scaling: Allow DRM_FORMAT_RGB565 rotation on gen>=11 (rev2) Patchwork
2018-08-30  8:20 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2018-09-02 19:34 ` Patchwork
2018-09-02 20:25 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).