Re: [RFC v2 3/3] dma-buf/sync_file: rework fence storage in struct file

2016-06-28 Thread Chris Wilson
On Tue, Jun 28, 2016 at 11:25:00AM -0300, Gustavo Padovan wrote: > 2016-06-28 Chris Wilson : > > > On Mon, Jun 27, 2016 at 04:29:22PM -0300, Gustavo Padovan wrote: > > > From: Gustavo Padovan > > > > > > Create sync_file->fence to abstract the type of fence we are using for > > > each sync_file.

Re: [RFC v2 3/3] dma-buf/sync_file: rework fence storage in struct file

2016-06-28 Thread Gustavo Padovan
2016-06-28 Chris Wilson : > On Tue, Jun 28, 2016 at 11:25:00AM -0300, Gustavo Padovan wrote: > > 2016-06-28 Chris Wilson : > > > > > On Mon, Jun 27, 2016 at 04:29:22PM -0300, Gustavo Padovan wrote: > > > > From: Gustavo Padovan > > > > > > > > Create sync_file->fence to abstract the type of fen

Re: [RFC v2 3/3] dma-buf/sync_file: rework fence storage in struct file

2016-06-28 Thread Gustavo Padovan
2016-06-28 Chris Wilson : > On Mon, Jun 27, 2016 at 04:29:22PM -0300, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > Create sync_file->fence to abstract the type of fence we are using for > > each sync_file. If only one fence is present we use a normal struct fence > > but if there is

Re: [RFC v2 3/3] dma-buf/sync_file: rework fence storage in struct file

2016-06-28 Thread Chris Wilson
On Mon, Jun 27, 2016 at 04:29:22PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > Create sync_file->fence to abstract the type of fence we are using for > each sync_file. If only one fence is present we use a normal struct fence > but if there is more fences to be added to the sync_fil

[RFC v2 3/3] dma-buf/sync_file: rework fence storage in struct file

2016-06-27 Thread Gustavo Padovan
From: Gustavo Padovan Create sync_file->fence to abstract the type of fence we are using for each sync_file. If only one fence is present we use a normal struct fence but if there is more fences to be added to the sync_file a fence_array is created. This change cleans up sync_file a bit. We don'