Module: Mesa Branch: main Commit: 2a7585504918ae4ea2a73279a6555471e345fdc7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2a7585504918ae4ea2a73279a6555471e345fdc7
Author: Jason Ekstrand <[email protected]> Date: Wed Nov 3 07:32:37 2021 -0500 anv: Stop checking for HAS_EXEC_FENCE Starting with 3b363d5b552d ("anv: Assume syncobj support"), we assume syncobj support and no longer use the execbuf sync_file API directly so there's no point in checking for it. For the one physical device check this deletes, we can assume has_exec_fence is always true because every kernel with syncobj support also has sync_file. Reviewed-by: Paulo Zanoni <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13610> --- src/intel/vulkan/anv_device.c | 1 - src/intel/vulkan/anv_private.h | 1 - src/intel/vulkan/anv_queue.c | 2 -- 3 files changed, 4 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index 14935959efe..0bda7c85fcb 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -870,7 +870,6 @@ anv_physical_device_try_create(struct anv_instance *instance, device->has_exec_async = anv_gem_get_param(fd, I915_PARAM_HAS_EXEC_ASYNC); device->has_exec_capture = anv_gem_get_param(fd, I915_PARAM_HAS_EXEC_CAPTURE); - device->has_exec_fence = anv_gem_get_param(fd, I915_PARAM_HAS_EXEC_FENCE); device->has_syncobj_wait = anv_gem_supports_syncobj_wait(fd); device->has_syncobj_wait_available = anv_gem_get_drm_cap(fd, DRM_CAP_SYNCOBJ_TIMELINE) != 0; diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 61bc3c13959..51dd4921179 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_private.h @@ -897,7 +897,6 @@ struct anv_physical_device { int cmd_parser_version; bool has_exec_async; bool has_exec_capture; - bool has_exec_fence; bool has_syncobj_wait; bool has_syncobj_wait_available; int max_context_priority; diff --git a/src/intel/vulkan/anv_queue.c b/src/intel/vulkan/anv_queue.c index 714267ac2c3..ef1435e9c26 100644 --- a/src/intel/vulkan/anv_queue.c +++ b/src/intel/vulkan/anv_queue.c @@ -2261,8 +2261,6 @@ void anv_GetPhysicalDeviceExternalSemaphoreProperties( case VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT: if (sem_type == VK_SEMAPHORE_TYPE_TIMELINE_KHR) break; - if (!device->has_exec_fence) - break; pExternalSemaphoreProperties->exportFromImportedHandleTypes = VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT; pExternalSemaphoreProperties->compatibleHandleTypes =
