iris: Make iris_bo_import_dmabuf take a modifier
authorNanley Chery <nanley.g.chery@intel.com>
Thu, 30 Jul 2020 18:47:23 +0000 (11:47 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 13 Aug 2020 22:03:48 +0000 (22:03 +0000)
commit493298528a82e2ab7cf3ce6aed187fe19730e3d0
treec1e58e658b5fb31ecb3503c6ac547fd217acf6c0
parentc111e9099ceada50a2437e6e2e2a0f7cc6597448
iris: Make iris_bo_import_dmabuf take a modifier

Replace the tiling parameter with a modifier parameter. I find it more
straightforward to have this function figure out the tiling from the
modifier than to have its caller do it.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6296>
src/gallium/drivers/iris/iris_bufmgr.c
src/gallium/drivers/iris/iris_bufmgr.h
src/gallium/drivers/iris/iris_resource.c