turnip: Only get bo offset when we need to mmap
authorKristian H. Kristensen <hoegsberg@chromium.org>
Wed, 16 Jan 2019 19:02:38 +0000 (11:02 -0800)
committerChia-I Wu <olvaffe@gmail.com>
Mon, 11 Mar 2019 17:01:41 +0000 (10:01 -0700)
commit0801019d335c6584716cb99fc7b8ca42cc0064b0
tree3830a12fce3bfee38ac952f7998a6e600e5522f8
parent23d6f0f9700d326f135f6d927b23563c9fd98acc
turnip: Only get bo offset when we need to mmap

The offset we get from MSM_INFO_GET_OFFSET is an offset into the drm fd
for the purpose of mmaping the buffer.
src/freedreno/vulkan/tu_device.c
src/freedreno/vulkan/tu_private.h