diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-03-24 19:17:43 +0100 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2012-03-24 19:17:43 +0100 |
commit | 11fa35850306172b0e2285a919172c02671dd815 (patch) | |
tree | b92efc84c02d81e50e11e1a1d889b30da531f356 /tests/gem_exec_faulting_reloc.c | |
parent | c34e48119939fa30809a58a9991ae18539824892 (diff) |
tests/gem_exec_faulting_reloc: kill superflous mmap_bo
Signed-Off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'tests/gem_exec_faulting_reloc.c')
-rw-r--r-- | tests/gem_exec_faulting_reloc.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/tests/gem_exec_faulting_reloc.c b/tests/gem_exec_faulting_reloc.c index 303f2d80..e67056da 100644 --- a/tests/gem_exec_faulting_reloc.c +++ b/tests/gem_exec_faulting_reloc.c @@ -57,17 +57,6 @@ #define BLT_SRC_TILED (1<<15) #define BLT_DST_TILED (1<<11) -static void * -mmap_bo(int fd, uint32_t handle) -{ - void *ptr; - - ptr = gem_mmap(fd, handle, 4096, PROT_READ | PROT_WRITE); - assert(ptr != MAP_FAILED); - - return ptr; -} - static int gem_linear_blt(uint32_t *batch, uint32_t src, uint32_t dst, @@ -191,7 +180,8 @@ static void run(int object_size) handle_relocs = gem_create(fd, 4096); gem_write(fd, handle_relocs, 0, reloc, sizeof(reloc)); - gtt_relocs = mmap_bo(fd, handle_relocs); + gtt_relocs = gem_mmap(fd, handle_relocs, 4096, + PROT_READ | PROT_WRITE); assert(gtt_relocs); exec[2].handle = handle; |