Re: [Intel-gfx] [RFC] drm/i915: Android native sync support

2015-01-22 Thread Damien Lespiau
On Thu, Jan 22, 2015 at 03:54:29PM +, Tvrtko Ursulin wrote: > > On 01/22/2015 03:47 PM, Damien Lespiau wrote: > >On Thu, Jan 22, 2015 at 03:28:04PM +, Tvrtko Ursulin wrote: > >> > >>On 01/22/2015 02:04 PM, Damien Lespiau wrote: > >>>On Thu, Jan 22, 2015 at 01:41:48PM +, Tvrtko Ursulin

Re: [Intel-gfx] [RFC] drm/i915: Android native sync support

2015-01-22 Thread Tvrtko Ursulin
On 01/22/2015 03:47 PM, Damien Lespiau wrote: On Thu, Jan 22, 2015 at 03:28:04PM +, Tvrtko Ursulin wrote: On 01/22/2015 02:04 PM, Damien Lespiau wrote: On Thu, Jan 22, 2015 at 01:41:48PM +, Tvrtko Ursulin wrote: @@ -718,7 +718,7 @@ struct drm_i915_gem_execbuffer2 { #define I915_EXE

Re: [Intel-gfx] [RFC] drm/i915: Android native sync support

2015-01-22 Thread Damien Lespiau
On Thu, Jan 22, 2015 at 03:28:04PM +, Tvrtko Ursulin wrote: > > On 01/22/2015 02:04 PM, Damien Lespiau wrote: > >On Thu, Jan 22, 2015 at 01:41:48PM +, Tvrtko Ursulin wrote: > @@ -718,7 +718,7 @@ struct drm_i915_gem_execbuffer2 { > #define I915_EXEC_CONSTANTS_REL_SURFACE (2<<6) /*

Re: [Intel-gfx] [RFC] drm/i915: Android native sync support

2015-01-22 Thread Tvrtko Ursulin
On 01/22/2015 02:04 PM, Damien Lespiau wrote: On Thu, Jan 22, 2015 at 01:41:48PM +, Tvrtko Ursulin wrote: @@ -718,7 +718,7 @@ struct drm_i915_gem_execbuffer2 { #define I915_EXEC_CONSTANTS_REL_SURFACE (2<<6) /* gen4/5 only */ __u64 flags; __u64 rsvd1; /* now used for contex

Re: [Intel-gfx] [RFC] drm/i915: Android native sync support

2015-01-22 Thread Damien Lespiau
On Thu, Jan 22, 2015 at 01:41:48PM +, Tvrtko Ursulin wrote: > >>@@ -718,7 +718,7 @@ struct drm_i915_gem_execbuffer2 { > >> #define I915_EXEC_CONSTANTS_REL_SURFACE (2<<6) /* gen4/5 only */ > >>__u64 flags; > >>__u64 rsvd1; /* now used for context info */ > >>- __u64 rsvd2; > >>+ __u

Re: [Intel-gfx] [RFC] drm/i915: Android native sync support

2015-01-22 Thread Tvrtko Ursulin
On 01/22/2015 01:49 PM, Chris Wilson wrote: On Thu, Jan 22, 2015 at 01:41:48PM +, Tvrtko Ursulin wrote: On 01/22/2015 11:42 AM, Chris Wilson wrote: + if (args->flags & I915_EXEC_FENCE_OUT) { + ret = i915_create_sync_fence_ring(ring, ctx, +

Re: [Intel-gfx] [RFC] drm/i915: Android native sync support

2015-01-22 Thread Chris Wilson
On Thu, Jan 22, 2015 at 01:41:48PM +, Tvrtko Ursulin wrote: > > On 01/22/2015 11:42 AM, Chris Wilson wrote: > >>+ if (args->flags & I915_EXEC_FENCE_OUT) { > >>+ ret = i915_create_sync_fence_ring(ring, ctx, > >>+ &sync_fence, &fence_fd); >

Re: [Intel-gfx] [RFC] drm/i915: Android native sync support

2015-01-22 Thread Tvrtko Ursulin
On 01/22/2015 11:42 AM, Chris Wilson wrote: On Thu, Jan 22, 2015 at 11:15:40AM +, Tvrtko Ursulin wrote: From: Jesse Barnes Add Android native sync support with fences exported as file descriptors via the execbuf ioctl (rsvd2 field is used). This is a continuation of Jesse Barnes's previo

Re: [Intel-gfx] [RFC] drm/i915: Android native sync support

2015-01-22 Thread Chris Wilson
On Thu, Jan 22, 2015 at 11:15:40AM +, Tvrtko Ursulin wrote: > From: Jesse Barnes > > Add Android native sync support with fences exported as file descriptors via > the execbuf ioctl (rsvd2 field is used). > > This is a continuation of Jesse Barnes's previous work, squashed to arrive at > the

[Intel-gfx] [RFC] drm/i915: Android native sync support

2015-01-22 Thread Tvrtko Ursulin
From: Jesse Barnes Add Android native sync support with fences exported as file descriptors via the execbuf ioctl (rsvd2 field is used). This is a continuation of Jesse Barnes's previous work, squashed to arrive at the final destination, cleaned up, with some fixes and preliminary light testing.