panfrost: Move the mmap BO logic out of panfrost_drm_import_bo()
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 11:15:58 +0000 (13:15 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Tue, 2 Jul 2019 12:58:51 +0000 (14:58 +0200)
commit948fddfc4294a7d5e93b2e1d76ad0058cd9e9889
treed1427d0c43736f11039f2aa58ce8c68ced0f44fb
parent8d4afcdacc16822d38318f8e7e0148566d2af9ec
panfrost: Move the mmap BO logic out of panfrost_drm_import_bo()

So we can re-use it for the panfrost_drm_create_bo() function we are
about to introduce.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
src/gallium/drivers/panfrost/pan_drm.c