iris/bufmgr: Do not use map_gtt or use set/get_tiling on DG1
authorRafael Antognolli <rafael.antognolli@intel.com>
Mon, 4 Nov 2019 22:04:25 +0000 (14:04 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 22 Jun 2020 18:42:00 +0000 (11:42 -0700)
commite6588354360d102f3bfbfdfd484490a6ae296142
treeeb7b048078c8281b2a18a24a23d0a1f97e85c469
parent762e601f776e7d692f49c328e526e6e2c3b14345
iris/bufmgr: Do not use map_gtt or use set/get_tiling on DG1

We are starting to see platforms that don't support the get/set tiling
uAPI. (For example, DG1.)

Additionally on DG1 we shouldn't be using the map_gtt anymore.

Let's add some asserts and make sure we don't take those paths
accidentally.

Rework:
 * Jordan: Only apply for DG1, not all gen12
 * Rafael: Use has_tiling_uapi
 * Jordan: Copy has_tiling_uapi from devinfo
 * Jordan: merge in "iris: Rework iris_bo_import_dmabuf() a little."
 * Jordan: Continue to call get/set_tiling on modifier path

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4956>
src/gallium/drivers/iris/iris_bufmgr.c
src/gallium/drivers/iris/iris_bufmgr.h
src/gallium/drivers/iris/iris_resource.c