Re: [Intel-gfx] [PATCH 1/3] drm/i915: Actually respect DSPSURF alignment restrictions

2015-06-15 Thread Daniel Vetter
On Fri, Jun 12, 2015 at 01:50:13PM +0300, Ville Syrjälä wrote: > On Thu, Jun 11, 2015 at 02:51:19PM +0100, Chris Wilson wrote: > > On Thu, Jun 11, 2015 at 04:31:14PM +0300, ville.syrj...@linux.intel.com > > wrote: > > > From: Ville Syrjälä > > > > > > Currently intel_gen4_compute_page_offset() s

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Actually respect DSPSURF alignment restrictions

2015-06-12 Thread Ville Syrjälä
On Thu, Jun 11, 2015 at 02:51:19PM +0100, Chris Wilson wrote: > On Thu, Jun 11, 2015 at 04:31:14PM +0300, ville.syrj...@linux.intel.com wrote: > > From: Ville Syrjälä > > > > Currently intel_gen4_compute_page_offset() simply picks the closest > > page boundary below the linear offset. That howeve

Re: [Intel-gfx] [PATCH 1/3] drm/i915: Actually respect DSPSURF alignment restrictions

2015-06-11 Thread Chris Wilson
On Thu, Jun 11, 2015 at 04:31:14PM +0300, ville.syrj...@linux.intel.com wrote: > From: Ville Syrjälä > > Currently intel_gen4_compute_page_offset() simply picks the closest > page boundary below the linear offset. That however may not be suitably > aligned to satisfy any hardware specific restric

[Intel-gfx] [PATCH 1/3] drm/i915: Actually respect DSPSURF alignment restrictions

2015-06-11 Thread ville . syrjala
From: Ville Syrjälä Currently intel_gen4_compute_page_offset() simply picks the closest page boundary below the linear offset. That however may not be suitably aligned to satisfy any hardware specific restrictions. So let's make sure the page boundary we choose is properly aligned. Also to play