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

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Thu Jan 22 07:28:04 PST 2015


On 01/22/2015 02:04 PM, Damien Lespiau wrote:
> On Thu, Jan 22, 2015 at 01:41:48PM +0000, 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;
>>>> +	__u64 rsvd2; /* now used for fence fd */
>>> If we are going to use this slot for fence fd, may as well make it
>>> supply both before/after.
>>
>> Not sure what you mean by before/after?
>>
>> In the future it will take in the input fence fd and return the output fence
>> if that's what you mean.
>
> BTW, couldn't we take 32bits here and leave 32bits reserved?

I guess so. Any ideas why the same wasn't done with rsvd1 - I see only 
32-bits are used for context id there?

Regards,

Tvrtko




More information about the Intel-gfx mailing list