public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] test. ignore. me.
@ 2018-12-13 17:51 Juha-Pekka Heikkila
  2018-12-13 18:16 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Juha-Pekka Heikkila @ 2018-12-13 17:51 UTC (permalink / raw)
  To: igt-dev

---
 tests/kms_rotation_crc.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c
index c67f608..dc30c09 100644
--- a/tests/kms_rotation_crc.c
+++ b/tests/kms_rotation_crc.c
@@ -135,10 +135,10 @@ paint_squares(data_t *data, igt_rotation_t rotation,
 
 	rotate_colors(&tl, &tr, &br, &bl, rotation);
 
-	igt_paint_color(cr, 0, 0, w / 2, h / 2, RGB_COLOR(tl));
-	igt_paint_color(cr, w / 2, 0, w / 2, h / 2, RGB_COLOR(tr));
-	igt_paint_color(cr, 0, h / 2, w / 2, h / 2, RGB_COLOR(bl));
-	igt_paint_color(cr, w / 2, h / 2, w / 2, h / 2, RGB_COLOR(br));
+	igt_paint_color(cr, 0, 0, w- (w / 2), h-(h / 2), RGB_COLOR(tl));
+	igt_paint_color(cr, w-(w / 2), 0, w-(w / 2), h-(h / 2), RGB_COLOR(tr));
+	igt_paint_color(cr, 0, h-(h / 2), w-(w / 2), h-(h / 2), RGB_COLOR(bl));
+	igt_paint_color(cr, w-(w / 2), h-(h / 2), w-(w / 2), h-(h / 2), RGB_COLOR(br));
 
 	igt_put_cairo_ctx(data->gfx_fd, fb, cr);
 }
@@ -439,8 +439,8 @@ static void get_multiplane_crc(data_t *data, igt_output_t *output,
 		planes[c].plane = igt_output_get_plane_type(output,
 							    planeinfo[c].planetype);
 
-		w = planeinfo[c].width;
-		h = planeinfo[c].height;
+		w = (planeinfo[c].width|1)+1;
+		h = (planeinfo[c].height|1)+1;
 
 		if (planeinfo[c].rotation_sw & (IGT_ROTATION_90 | IGT_ROTATION_270))
 			igt_swap(w, h);
-- 
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] 5+ messages in thread

end of thread, other threads:[~2018-12-14  0:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-13 17:51 [igt-dev] [PATCH i-g-t] test. ignore. me Juha-Pekka Heikkila
2018-12-13 18:16 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2018-12-13 19:02 ` [igt-dev] ✓ Fi.CI.BAT: success for test. ignore. me. (rev2) Patchwork
2018-12-13 22:09 ` [igt-dev] ✗ Fi.CI.IGT: failure for test. ignore. me Patchwork
2018-12-14  0:09 ` [igt-dev] ✗ Fi.CI.IGT: failure for test. ignore. me. (rev2) Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox