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:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user