mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-06 07:08:03 +02:00
amdgpu: add zero timeout check in amdgpu_cs_query_fence_status
Signed-off-by: Jack Xiao <Jack.Xiao@amd.com> Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
This commit is contained in:
parent
76af5c249f
commit
b9ef29d1be
1 changed files with 5 additions and 0 deletions
|
|
@ -396,6 +396,11 @@ int amdgpu_cs_query_fence_status(struct amdgpu_cs_query_fence *fence,
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (fence->timeout_ns == 0) {
|
||||
pthread_mutex_unlock(&context->sequence_mutex);
|
||||
return 0;
|
||||
}
|
||||
|
||||
pthread_mutex_unlock(&context->sequence_mutex);
|
||||
|
||||
r = amdgpu_ioctl_wait_cs(context, ip_type, ip_instance, ring,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue