intel/devinfo: Add function to check for DRM_I915_GEM_GET_TILING.
authorRafael Antognolli <rafael.antognolli@intel.com>
Wed, 3 Jun 2020 17:19:50 +0000 (17:19 +0000)
committerJordan Justen <jordan.l.justen@intel.com>
Mon, 22 Jun 2020 18:42:00 +0000 (11:42 -0700)
commit762e601f776e7d692f49c328e526e6e2c3b14345
treedff91e32206c509a56f3001f469cb1cb3c1007b8
parent86617c08cc928563509a7f8eea4922044610e77b
intel/devinfo: Add function to check for DRM_I915_GEM_GET_TILING.

Future (discrete) platforms won't have support for get/set tiling. This
function allows our drivers to query for that, by simply trying to get
the tiling from a dummy buffer.

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4956>
src/intel/dev/gen_device_info.c
src/intel/dev/gen_device_info.h