summaryrefslogtreecommitdiff
path: root/tests/gem_caching.c
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-12 12:17:35 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-08-12 12:20:22 +0200
commit1caaf0a6b6e00e3ab85a10d7e9e36907d4c1d577 (patch)
tree258ab2ef01b3461f1dc85f081a59ecd578874326 /tests/gem_caching.c
parent814b135541813a6ee623eda895119acdea7f7a2f (diff)
s/drmtest_/igt_/
Requested-by: Chris Wilson <chris@chris-wilson.co.uk> Acked-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_caching.c')
-rw-r--r--tests/gem_caching.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/gem_caching.c b/tests/gem_caching.c
index 8b4be74f6..b952a9d67 100644
--- a/tests/gem_caching.c
+++ b/tests/gem_caching.c
@@ -94,7 +94,7 @@ blt_bo_fill(drm_intel_bo *tmp_bo, drm_intel_bo *bo, uint8_t val)
if (bo->offset < mappable_gtt_limit &&
(IS_G33(devid) || intel_gen(devid) >= 4))
- drmtest_trash_aperture();
+ igt_trash_aperture();
copy_bo(tmp_bo, bo);
}
@@ -111,8 +111,8 @@ int main(int argc, char **argv)
uint8_t *cpu_ptr;
uint8_t *gtt_ptr;
- drmtest_subtest_init(argc, argv);
- drmtest_skip_on_simulation();
+ igt_subtest_init(argc, argv);
+ igt_skip_on_simulation();
srandom(0xdeadbeef);
@@ -138,12 +138,12 @@ int main(int argc, char **argv)
staging_bo = drm_intel_bo_alloc(bufmgr, "staging bo", BO_SIZE, 4096);
- drmtest_init_aperture_trashers(bufmgr);
+ igt_init_aperture_trashers(bufmgr);
mappable_gtt_limit = gem_mappable_aperture_size();
- drmtest_subtest("reads") {
+ igt_subtest("reads") {
if (!(flags & TEST_READ))
- drmtest_skip();
+ igt_skip();
printf("checking partial reads\n");
@@ -167,13 +167,13 @@ int main(int argc, char **argv)
}
drm_intel_bo_unmap(scratch_bo);
- drmtest_progress("partial reads test: ", i, ROUNDS);
+ igt_progress("partial reads test: ", i, ROUNDS);
}
}
- drmtest_subtest("writes") {
+ igt_subtest("writes") {
if (!(flags & TEST_WRITE))
- drmtest_skip();
+ igt_skip();
printf("checking partial writes\n");
@@ -219,13 +219,13 @@ int main(int argc, char **argv)
}
drm_intel_gem_bo_unmap_gtt(staging_bo);
- drmtest_progress("partial writes test: ", i, ROUNDS);
+ igt_progress("partial writes test: ", i, ROUNDS);
}
}
- drmtest_subtest("read-writes") {
+ igt_subtest("read-writes") {
if (!((flags & TEST_BOTH) == TEST_BOTH))
- drmtest_skip();
+ igt_skip();
printf("checking partial writes after partial reads\n");
@@ -292,14 +292,14 @@ int main(int argc, char **argv)
drm_intel_gem_bo_unmap_gtt(staging_bo);
drm_intel_bo_unmap(scratch_bo);
- drmtest_progress("partial read/writes test: ", i, ROUNDS);
+ igt_progress("partial read/writes test: ", i, ROUNDS);
}
}
- drmtest_cleanup_aperture_trashers();
+ igt_cleanup_aperture_trashers();
drm_intel_bufmgr_destroy(bufmgr);
close(fd);
- return drmtest_retval();
+ return igt_retval();
}