[Intel-gfx] [PATCH v2 19/29] drm/i915: Add functions to emit register offsets to the ring

Chris Wilson chris at chris-wilson.co.uk
Thu Nov 5 03:03:38 PST 2015


On Wed, Nov 04, 2015 at 11:20:07PM +0200, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> When register type safety happens, we can't just try to emit the
> register itself to the ring. Instead we'll need to extract the
> offset from it first. Add some convenience functions that will do
> that.
> 
> v2: Convert MOCS setup too
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

The only insane thing about this patch is the stupid ring emission API.
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list