radeonsi: Export signalled sync file instead of -1.
authorBas Nieuwenhuizen <basni@chromium.org>
Thu, 25 Jan 2018 15:48:17 +0000 (16:48 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 26 Jan 2018 00:26:53 +0000 (01:26 +0100)
commit5a3404d443e0c6e8e9a44d7f8dccf96c5ac18f0f
treec6eb9b8d8e9d0c2dd76f0b4e1e0b7b685b4fdffb
parentdb682b8f0eafd3b9d58e736e9e2f520943a89942
radeonsi: Export signalled sync file instead of -1.

-1 is considered an error for EGL_ANDROID_native_fence_sync, so
we need to actually create a sync file.

Fixes: f536f45250 "radeonsi: implement sync_file import/export"
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/radeon/radeon_winsys.h
src/gallium/drivers/radeonsi/si_fence.c
src/gallium/winsys/amdgpu/drm/amdgpu_cs.c