summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2019-10-30 21:58:42 +0100
committerDylan Baker <[email protected]>2019-11-04 08:02:36 -0800
commit63ff2a51d3e31c4abd8d3175f0ae744a2a886c8f (patch)
tree71d7162e3a8e4ed16343e07e30d58e0b7ad2d364 /src/amd
parent43234ba02ad80bc83593eb14c1abbf242cc87bb7 (diff)
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 <[email protected]> (cherry picked from commit ec770085c270cb167c02f299f6985744682933b1)
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c2
1 files changed, 1 insertions, 1 deletions
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);