hasvk: Require HAS_EXEC_ASYNC

This feature is as old as the Vulkan driver itself.  We've required
newer kernels for a long time.  There's no point in having this feature
bit kicking around.

Acked-by: Daniel Stone <daniels@collabora.com>
Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36783>
This commit is contained in:
Faith Ekstrand
2025-08-14 17:06:50 -04:00
parent 57aceb96aa
commit 5802d2c090
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -1527,7 +1527,7 @@ anv_bo_alloc_flags_to_bo_flags(struct anv_device *device,
bo_flags |= EXEC_OBJECT_WRITE;
}
if (!(alloc_flags & ANV_BO_ALLOC_IMPLICIT_SYNC) && pdevice->has_exec_async)
if (!(alloc_flags & ANV_BO_ALLOC_IMPLICIT_SYNC))
bo_flags |= EXEC_OBJECT_ASYNC;
if (pdevice->use_softpin)
+6 -2
View File
@@ -1699,8 +1699,12 @@ anv_physical_device_try_create(struct vk_instance *vk_instance,
goto fail_base;
}
if (intel_gem_get_param(fd, I915_PARAM_HAS_EXEC_ASYNC, &val))
device->has_exec_async = val;
if (!intel_gem_get_param(fd, I915_PARAM_HAS_EXEC_ASYNC, &val) || !val) {
result = vk_errorf(device, VK_ERROR_INITIALIZATION_FAILED,
"kernel missing exec async support");
goto fail_base;
}
if (intel_gem_get_param(fd, I915_PARAM_HAS_EXEC_CAPTURE, &val))
device->has_exec_capture = val;
-1
View File
@@ -859,7 +859,6 @@ struct anv_physical_device {
*/
uint32_t n_perf_query_commands;
int cmd_parser_version;
bool has_exec_async;
bool has_exec_capture;
int max_context_priority;
uint64_t gtt_size;