[PATCH 02/11] dma-buf/fence: add fence_array fences v6

Gustavo Padovan gustavo at padovan.org
Wed Jun 1 14:01:08 UTC 2016


Hi Christian,

2016-06-01 Christian König <deathsimple at vodafone.de>:

> From: Gustavo Padovan <gustavo.padovan at collabora.co.uk>
> 
> struct fence_collection inherits from struct fence and carries a
> collection of fences that needs to be waited together.
> 
> It is useful to translate a sync_file to a fence to remove the complexity
> of dealing with sync_files on DRM drivers. So even if there are many
> fences in the sync_file that needs to waited for a commit to happen,
> they all get added to the fence_collection and passed for DRM use as
> a standard struct fence.
> 
> That means that no changes needed to any driver besides supporting fences.
> 
> fence_collection's fence doesn't belong to any timeline context, so
> fence_is_later() and fence_later() are not meant to be called with
> fence_collections fences.

The commit message needs to be fixed to say mention fence_array instead
of fence_collection and we do create fence contexts for fence_arrays
now.

	Gustavo


More information about the dri-devel mailing list