Re: Shared semaphores for amdgpu

2017-03-09 Thread Dave Airlie
> > As far as I can see the only functionality we are missing here is: > > void sync_file_signal(struct sync_file *sync_file, struct dma_fence *fence) > { > dma_fence_put(sync_file->fence); > sync_file->fence = fence; > } > > We probably should do this atomically, but that is only a matter

Re: Shared semaphores for amdgpu

2017-03-09 Thread Christian König
Am 10.03.2017 um 00:19 schrieb Dave Airlie: Completely agree, problem here is that this isn't documented like this in the Vulkan specification as far as I know. (I'm adding dri-devel, since I think Intel folks have looked into some of this already, and we might need to make some common functiona

Re: Shared semaphores for amdgpu

2017-03-09 Thread Dave Airlie
> Completely agree, problem here is that this isn't documented like this in > the Vulkan specification as far as I know. (I'm adding dri-devel, since I think Intel folks have looked into some of this already, and we might need to make some common functionality). "The semaphore must be signaled, o