[PATCH i-g-t 14/16] plot: Write simple plot with debug rectangles as well

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Not only useful for inspection but also to check we can re-start a
drawing just fine.

Signed-off-by: Damien Lespiau <damien.lespiau@xxxxxxxxx>
---
 lib/tests/igt_plot.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/tests/igt_plot.c b/lib/tests/igt_plot.c
index a178fbf..7091cef 100644
--- a/lib/tests/igt_plot.c
+++ b/lib/tests/igt_plot.c
@@ -90,6 +90,9 @@ static void test_simple_plot(void)
 	igt_plot_draw(&plot, x, y);
 	igt_plot_write(&plot, "test_simple_plot.png");
 
+	plot.debug = true;
+	igt_plot_write(&plot, "test_simple_plot_debug.png");
+
 	igt_plot_fini(&plot);
 	igt_vector_unref(x);
 	igt_vector_unref(y);
-- 
2.1.0

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux