[PATCH v2] drm/i915: pin sprite fb only if it changed

2014-09-10 Thread Ville Syrjälä
On Wed, Sep 10, 2014 at 12:03:17PM -0300, Gustavo Padovan wrote: > From: Gustavo Padovan > > Optimize code avoiding helding dev mutex if old fb and current fb > are the same. > > v2: take Ville's comments > - move comment along with the pin_and_fence call > - check for error before c

[PATCH v2] drm/i915: pin sprite fb only if it changed

2014-09-10 Thread Daniel Vetter
On Wed, Sep 10, 2014 at 07:26:53PM +0300, Ville Syrj?l? wrote: > On Wed, Sep 10, 2014 at 12:03:17PM -0300, Gustavo Padovan wrote: > > From: Gustavo Padovan > > > > Optimize code avoiding helding dev mutex if old fb and current fb > > are the same. > > > > v2: take Ville's comments > > - move

[PATCH v2] drm/i915: pin sprite fb only if it changed

2014-09-10 Thread Gustavo Padovan
From: Gustavo Padovan Optimize code avoiding helding dev mutex if old fb and current fb are the same. v2: take Ville's comments - move comment along with the pin_and_fence call - check for error before calling i915_gem_track_fb - move old_obj != obj to an upper if conditi