It's much easier to follow the new gem_render_copy test and acquire a
aub dump from it.

Suggested-by: Chris Wilson <ch...@chris-wilson.co.uk>
Signed-off-by: Damien Lespiau <damien.lesp...@intel.com>
---
 tests/gem_render_linear_blits.c | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/tests/gem_render_linear_blits.c b/tests/gem_render_linear_blits.c
index 1cc50b9..f110753 100644
--- a/tests/gem_render_linear_blits.c
+++ b/tests/gem_render_linear_blits.c
@@ -90,11 +90,6 @@ int main(int argc, char **argv)
        if (argc > 1)
                count = atoi(argv[1]);
 
-       if (drmtest_dump_aub()) {
-               count = 2;
-               drm_intel_bufmgr_gem_set_aub_filename(bufmgr, "rendercopy.aub");
-               drm_intel_bufmgr_gem_set_aub_dump(bufmgr, true);
-       }
        if (count == 0)
                count = 3 * gem_aperture_size(fd) / SIZE / 2;
        else if (count < 2) {
@@ -135,17 +130,6 @@ int main(int argc, char **argv)
 
                render_copy(batch, &src, 0, 0, WIDTH, HEIGHT, &dst, 0, 0);
                start_val[(i + 1) % count] = start_val[i % count];
-
-               /* We're not really here for the test, we just want to dump a
-                * trace of a call to render_copy() */
-               if (drmtest_dump_aub()) {
-                       drm_intel_gem_bo_aub_dump_bmp(dst.bo,
-                               0, 0, WIDTH, HEIGHT,
-                               AUB_DUMP_BMP_FORMAT_ARGB_8888,
-                               STRIDE, 0);
-                       drm_intel_bufmgr_gem_set_aub_dump(bufmgr, false);
-                       return 0;
-               }
        }
        for (i = 0; i < count; i++)
                check_bo(fd, bo[i]->handle, start_val[i]);
-- 
1.8.3.1

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

Reply via email to