[PATCH] drm: Store the plane's index

2016-05-27 Thread Daniel Vetter
On Thu, May 26, 2016 at 08:17:40AM -0700, Matt Roper wrote: > On Thu, May 26, 2016 at 01:17:18PM +0100, Chris Wilson wrote: > > Currently the plane's index is determined by walking the list of all > > planes in the mode and finding the position of that plane in the list. A > > linear walk, especial

[Intel-gfx] [PATCH] drm: Store the plane's index

2016-05-26 Thread Ville Syrjälä
On Thu, May 26, 2016 at 10:34:57AM +0100, Chris Wilson wrote: > Currently the plane's index is determined by walking the list of all > planes in the mode and finding the position of that plane in the list. A > linear walk, especially a linear walk within a linear walk as frequently > conceived by i

[PATCH] drm: Store the plane's index

2016-05-26 Thread Chris Wilson
Currently the plane's index is determined by walking the list of all planes in the mode and finding the position of that plane in the list. A linear walk, especially a linear walk within a linear walk as frequently conceived by i915.ko [O(N^2)] quickly comes to dominate profiles. The plane's index

[PATCH] drm: Store the plane's index

2016-05-26 Thread Chris Wilson
Currently the plane's index is determined by walking the list of all planes in the mode and finding the position of that plane in the list. A linear walk, especially a linear walk within a linear walk as frequently conceived by i915.ko [O(N^2)] quickly comes to dominate profiles. The plane's index

[PATCH] drm: Store the plane's index

2016-05-26 Thread Matt Roper
On Thu, May 26, 2016 at 01:17:18PM +0100, Chris Wilson wrote: > Currently the plane's index is determined by walking the list of all > planes in the mode and finding the position of that plane in the list. A > linear walk, especially a linear walk within a linear walk as frequently > conceived by i