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

Damien Lespiau damien.lespiau at intel.com
Mon Jul 6 05:35:42 PDT 2015


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

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 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



More information about the Intel-gfx mailing list