sna: Fix cast from u64 to pointer for 32-bit hosts

Missing chunk from

commit 42330fbae8
Author: Chris Wilson <chris@chris-wilson.co.uk>
Date:   Sun Sep 22 14:39:57 2013 +0100

    sna: Track CPU/GTT maps independently

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2013-09-23 11:54:47 +01:00
parent bee26a8e2e
commit e4850bbbcc
1 changed files with 1 additions and 1 deletions

View File

@ -5063,7 +5063,7 @@ retry:
VG(VALGRIND_MAKE_MEM_DEFINED(mmap_arg.addr_ptr, bytes(bo)));
DBG(("%s: caching CPU vma for %d\n", __FUNCTION__, bo->handle));
return bo->map__cpu = (void *)(mmap_arg.addr_ptr);
return bo->map__cpu = (void *)(uintptr_t)mmap_arg.addr_ptr;
}
uint32_t kgem_bo_flink(struct kgem *kgem, struct kgem_bo *bo)