radv: reset semaphores & fences on sync_file export.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 4 Jan 2018 01:55:39 +0000 (02:55 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 11 Jan 2018 20:56:13 +0000 (21:56 +0100)
commitb9f4c615f860b1fb00dec2917fcec4df84f6427e
tree809c7f4a78d28b703d25540c2636428830cd2aa2
parentfe668b5c155aee4443dde0748065241e09293302
radv: reset semaphores & fences on sync_file export.

Per spec:

"Additionally, exporting a fence payload to a handle with copy transference has the same side effects
on the source fence’s payload as executing a fence reset operation. If the fence was using a
temporarily imported payload, the fence’s prior permanent payload will be restored."

And similar for semaphores:

"Additionally, exporting a semaphore payload to a handle with copy transference has the same side
effects on the source semaphore’s payload as executing a semaphore wait operation. If the
semaphore was using a temporarily imported payload, the semaphore’s prior permanent payload
will be restored."

Fixes: 42bc25a79c "radv: Advertise sync fd import and export."
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_device.c