From: Bas Nieuwenhuizen Date: Wed, 30 Oct 2019 20:58:42 +0000 (+0100) Subject: radv: Fix timeout handling in syncobj wait. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec770085c270cb167c02f299f6985744682933b1;p=mesa.git radv: Fix timeout handling in syncobj wait. libdrm returns -errno instead of directly the ioctl ret of -1. Fixes: 1c3cda7d277 "radv: Add syncobj signal/reset/wait to winsys." Reviewed-by: Samuel Pitoiset --- diff --git a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c index 0c521917027..676dd062ff3 100644 --- a/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c +++ b/src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c @@ -1582,7 +1582,7 @@ static bool radv_amdgpu_wait_syncobj(struct radeon_winsys *_ws, const uint32_t * &tmp); if (ret == 0) { return true; - } else if (ret == -1 && errno == ETIME) { + } else if (ret == -ETIME) { return false; } else { fprintf(stderr, "amdgpu: radv_amdgpu_wait_syncobj failed!\nerrno: %d\n", errno);