iris: Use DRM_IOCTL_I915_GEM_CREATE_EXT in all supported kernels
authorJosé Roberto de Souza <jose.souza@intel.com>
Fri, 10 Feb 2023 18:19:19 +0000 (10:19 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 3 Mar 2023 05:57:05 +0000 (05:57 +0000)
commitcebffb404f4704de52083567abe88a9397a0e416
tree7464eca5ecf85b6962cb733dbf4bc8b23cd8a63c
parent65d129ec15796bc5af7ce3b4b45a6dcc1427ae60
iris: Use DRM_IOCTL_I915_GEM_CREATE_EXT in all supported kernels

As we start to refactor the iris code base to support Xe KMD here I'm
dropping DRM_IOCTL_I915_GEM_CREATE usage as much as possible and
unifying all graphics memory allocation calls to
DRM_IOCTL_I915_GEM_CREATE_EXT.

The kernel version that implemented DRM_I915_QUERY_MEMORY_REGIONS uAPI
also implemented DRM_IOCTL_I915_GEM_CREATE_EXT so we can use that
to safely call DRM_IOCTL_I915_GEM_CREATE_EXT.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21369>
src/gallium/drivers/iris/iris_bufmgr.c