@@ -30,32 +30,6 @@
IGT_TEST_DESCRIPTION("Basic check of polling for prime/vgem fences.");
-static void test_read(int vgem, int i915)
-{
- struct vgem_bo scratch;
- uint32_t handle;
- uint32_t *ptr;
- int i;
-
- scratch.width = 1024;
- scratch.height = 1024;
- scratch.bpp = 32;
- handle = vgem_create_and_import(vgem, &scratch, i915, NULL);
-
- ptr = vgem_mmap(vgem, &scratch, PROT_WRITE);
- for (i = 0; i < 1024; i++)
- ptr[1024*i] = i;
- munmap(ptr, scratch.size);
- gem_close(vgem, scratch.handle);
-
- for (i = 0; i < 1024; i++) {
- uint32_t tmp;
- gem_read(i915, handle, 4096*i, &tmp, sizeof(tmp));
- igt_assert_eq(tmp, i);
- }
- gem_close(i915, handle);
-}
-
static void test_fence_read(int i915, int vgem)
{
struct vgem_bo scratch;
@@ -159,30 +133,6 @@ static void test_fence_mmap(int i915, int vgem)
close(slave[1]);
}
-static void test_write(int vgem, int i915)
-{
- struct vgem_bo scratch;
- uint32_t handle;
- uint32_t *ptr;
- int i;
-
- scratch.width = 1024;
- scratch.height = 1024;
- scratch.bpp = 32;
- handle = vgem_create_and_import(vgem, &scratch, i915, NULL);
-
- ptr = vgem_mmap(vgem, &scratch, PROT_READ);
- gem_close(vgem, scratch.handle);
-
- for (i = 0; i < 1024; i++)
- gem_write(i915, handle, 4096*i, &i, sizeof(i));
- gem_close(i915, handle);
-
- for (i = 0; i < 1024; i++)
- igt_assert_eq(ptr[1024*i], i);
- munmap(ptr, scratch.size);
-}
-
static void test_gtt(int vgem, int i915)
{
struct vgem_bo scratch;
@@ -742,12 +692,6 @@ igt_main
gem_require_mmap_wc(i915);
}
- igt_subtest("basic-read")
- test_read(vgem, i915);
-
- igt_subtest("basic-write")
- test_write(vgem, i915);
-
igt_subtest("basic-gtt")
test_gtt(vgem, i915);
the same coverage is now in gem_pread and gem_pwrite Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> --- tests/prime_vgem.c | 56 ------------------------------------------------------ 1 file changed, 56 deletions(-)