[Intel-gfx] [PATCH i-g-t 2/2] pipe_crc: Make collect_crc() ensure the CRC looks somewhat valid
Damien Lespiau
damien.lespiau at intel.com
Mon Jul 7 19:03:30 CEST 2014
Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
lib/igt_debugfs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/igt_debugfs.c b/lib/igt_debugfs.c
index 5c4bbc5..d4a6cf6 100644
--- a/lib/igt_debugfs.c
+++ b/lib/igt_debugfs.c
@@ -527,6 +527,8 @@ void igt_pipe_crc_collect_crc(igt_pipe_crc_t *pipe_crc, igt_crc_t *out_crc)
igt_pipe_crc_start(pipe_crc);
read_one_crc(pipe_crc, out_crc);
igt_pipe_crc_stop(pipe_crc);
+
+ igt_assert(!igt_crc_is_null(out_crc));
}
/*
--
1.8.3.1
More information about the Intel-gfx
mailing list