anv: Stop checking for HAS_EXEC_FENCE
Starting with 3b363d5b55
("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 <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13610>
This commit is contained in:

committed by
Marge Bot

parent
2eb9057de0
commit
2a75855049
@@ -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_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_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 = anv_gem_supports_syncobj_wait(fd);
|
||||||
device->has_syncobj_wait_available =
|
device->has_syncobj_wait_available =
|
||||||
anv_gem_get_drm_cap(fd, DRM_CAP_SYNCOBJ_TIMELINE) != 0;
|
anv_gem_get_drm_cap(fd, DRM_CAP_SYNCOBJ_TIMELINE) != 0;
|
||||||
|
@@ -897,7 +897,6 @@ struct anv_physical_device {
|
|||||||
int cmd_parser_version;
|
int cmd_parser_version;
|
||||||
bool has_exec_async;
|
bool has_exec_async;
|
||||||
bool has_exec_capture;
|
bool has_exec_capture;
|
||||||
bool has_exec_fence;
|
|
||||||
bool has_syncobj_wait;
|
bool has_syncobj_wait;
|
||||||
bool has_syncobj_wait_available;
|
bool has_syncobj_wait_available;
|
||||||
int max_context_priority;
|
int max_context_priority;
|
||||||
|
@@ -2261,8 +2261,6 @@ void anv_GetPhysicalDeviceExternalSemaphoreProperties(
|
|||||||
case VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT:
|
case VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT:
|
||||||
if (sem_type == VK_SEMAPHORE_TYPE_TIMELINE_KHR)
|
if (sem_type == VK_SEMAPHORE_TYPE_TIMELINE_KHR)
|
||||||
break;
|
break;
|
||||||
if (!device->has_exec_fence)
|
|
||||||
break;
|
|
||||||
pExternalSemaphoreProperties->exportFromImportedHandleTypes =
|
pExternalSemaphoreProperties->exportFromImportedHandleTypes =
|
||||||
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT;
|
VK_EXTERNAL_SEMAPHORE_HANDLE_TYPE_SYNC_FD_BIT;
|
||||||
pExternalSemaphoreProperties->compatibleHandleTypes =
|
pExternalSemaphoreProperties->compatibleHandleTypes =
|
||||||
|
Reference in New Issue
Block a user