OSDN Git Service

radv: Fix timeout handling in syncobj wait.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 30 Oct 2019 20:58:42 +0000 (21:58 +0100)
committerDylan Baker <dylan@pnwbakers.com>
Thu, 31 Oct 2019 22:12:36 +0000 (15:12 -0700)
commit9df476344031e31c5cff050cb647990ed999fe32
tree7478acc2588a43a4643457fe8502cf7ac7262815
parent2b1b7afb5c2d145166908cae77df6178426bb31f
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 <samuel.pitoiset@gmail.com>
(cherry picked from commit ec770085c270cb167c02f299f6985744682933b1)
src/amd/vulkan/winsys/amdgpu/radv_amdgpu_cs.c