anv: Use DRM_IOCTL_I915_GEM_CREATE_EXT in all supported kernels
As we continue to refactor the code base to support Xe KMD here I'm dropping anv_gem_create() and unifying all graphics memory allocation calls to anv_gem_create_regions(). anv_gem_create_regions() will call DRM_IOCTL_I915_GEM_CREATE_EXT for integrated platforms too only leaving DRM_IOCTL_I915_GEM_CREATE calls to kernel versions that do not support DRM_IOCTL_I915_GEM_CREATE_EXT. This can be detected by devinfo->mem.use_class_instance as DRM_I915_QUERY_MEMORY_REGIONS uAPI landed in the same kernel version as 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/20948>
This commit is contained in:

committed by
Marge Bot

parent
099b9e5058
commit
eaeda2107e
@@ -1345,7 +1345,6 @@ VkResult anv_queue_submit_simple_batch(struct anv_queue *queue,
|
||||
void* anv_gem_mmap(struct anv_device *device, struct anv_bo *bo,
|
||||
uint64_t offset, uint64_t size, uint32_t flags);
|
||||
void anv_gem_munmap(struct anv_device *device, void *p, uint64_t size);
|
||||
uint32_t anv_gem_create(struct anv_device *device, uint64_t size);
|
||||
void anv_gem_close(struct anv_device *device, uint32_t gem_handle);
|
||||
uint32_t anv_gem_create_regions(struct anv_device *device, uint64_t anv_bo_size,
|
||||
uint32_t flags, uint32_t num_regions,
|
||||
|
Reference in New Issue
Block a user