diff options
Diffstat (limited to 'tests/gem_set_tiling_vs_gtt.c')
-rw-r--r-- | tests/gem_set_tiling_vs_gtt.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/gem_set_tiling_vs_gtt.c b/tests/gem_set_tiling_vs_gtt.c index dc6ee5be..e0ef2b7b 100644 --- a/tests/gem_set_tiling_vs_gtt.c +++ b/tests/gem_set_tiling_vs_gtt.c @@ -105,13 +105,11 @@ igt_simple_main + half*tile_height + ofs; uint32_t val = data[data_i]; - if (ptr[i] != val) { - printf("mismatch at %i, row=%i, half=%i, ofs=%i\n", - i, row, half, ofs); - printf("read: 0x%08x, expected: 0x%08x\n", - ptr[i], val); - igt_assert(0); - } + igt_assert_f(ptr[i] == val, + "mismatch at %i, row=%i, half=%i, ofs=%i, " + "read: 0x%08x, expected: 0x%08x\n", + i, row, half, ofs, + ptr[i], val); } |