From e497600fb73d138e51a641f7792f11822c20a929 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 24 Oct 2014 07:40:04 +0100 Subject: [PATCH] igt/gem_userptr_blits/dmabuf: Map the right pointer for !llc References: https://bugs.freedesktop.org/show_bug.cgi?id=85354#c2 Signed-off-by: Chris Wilson --- tests/gem_userptr_blits.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gem_userptr_blits.c b/tests/gem_userptr_blits.c index a04e6ada..aabc68af 100644 --- a/tests/gem_userptr_blits.c +++ b/tests/gem_userptr_blits.c @@ -687,7 +687,7 @@ static void *umap(int fd, uint32_t handle) } else { uint32_t tmp = gem_create(fd, sizeof(linear)); copy(fd, tmp, handle, 0); - ptr = gem_mmap__cpu(fd, handle, sizeof(linear), PROT_READ); + ptr = gem_mmap__cpu(fd, tmp, sizeof(linear), PROT_READ); gem_close(fd, tmp); }