[Intel-gfx] [PATCH 1/3] drm/i915: Skip register reads in i915_get_crtc_scanoutpos()

Chris Wilson chris at chris-wilson.co.uk
Mon Sep 23 12:30:50 CEST 2013


On Mon, Sep 23, 2013 at 01:02:05PM +0300, ville.syrjala at linux.intel.com wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> We have all the information we need in the mode structure, so going and
> reading it from the hardware is pointless, and slower.
> 
> For the !kms case, leave the register reads in place.

dev->driver->get_scanout_position [i915_get_crtc_scanoutpos] is only
called by i915_get_vblank_timestamp() which is only used by KMS.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list