diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-03-23 22:27:09 +0300 |
---|---|---|
committer | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2017-03-27 15:58:33 +0300 |
commit | a0864d5905a94359621946a027e180a3063f80a5 (patch) | |
tree | c746248c0c5227bea799b570d059ca58d6540570 /drivers/gpu/drm/i915/intel_drv.h | |
parent | 6a4407a653e93f56e0d7b8849fc9c1d334de39fc (diff) | |
download | linux-a0864d5905a94359621946a027e180a3063f80a5.tar.xz |
drm/i915: Pre-compute plane control register value
Computing the plane control register value is branchy so moving it out
from the plane commit hook seems prudent. Let's pre-compute it during
the atomic check phase and store the result in the plane state.
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170323192712.30682-4-ville.syrjala@linux.intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/intel_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/intel_drv.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_drv.h b/drivers/gpu/drm/i915/intel_drv.h index 45e55b45e772..a35442eadd36 100644 --- a/drivers/gpu/drm/i915/intel_drv.h +++ b/drivers/gpu/drm/i915/intel_drv.h @@ -398,6 +398,9 @@ struct intel_plane_state { int x, y; } aux; + /* plane control register */ + u32 ctl; + /* * scaler_id * = -1 : not using a scaler |