[Intel-gfx] [PATCH 3/3] drm/i915: Use intel_plane_obj_offset from more places

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Thu May 28 01:58:30 PDT 2015


On 05/27/2015 10:15 PM, Chris Wilson wrote:
> On Wed, May 27, 2015 at 10:52:34AM +0100, Tvrtko Ursulin wrote:
>> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
>>
>> These are the display call sites so should use the proper helper.
>>
>> Also requires intel_plane_obj_offset to assume normal view when
>> plane pointer is not available.
>
> Eugh. If only the plane stored the offset, bonus marks for storing the
> vma cookie, then we would not have to keep recomputing the view and
> searching every single time...

Well, the patch even decreases the number of searches! :)

And we don't recompute when querying the offset - it just figures out 
what type of vma it should look for. So I think it doesn't prevent any 
future caching improvements. It actually makes it easier since it 
consolidates the query.

I'll need this, or something like it, for some future work. So at the 
very moment I am not too bothered if this goes in or not.

Regards,

Tvrtko


More information about the Intel-gfx mailing list