diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2016-12-21 16:45:47 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-01-12 11:39:08 +0100 |
commit | fe4fc2d67d0bfa0a1b5178e4f3c0f3ae7b29f737 (patch) | |
tree | a2625ef0e0604f38c153a2bf5ae59ba0a5971e79 /drivers/gpu/drm | |
parent | f0f7f38e80688776a21e6a91025a4851c06c6ee3 (diff) | |
download | blackbird-op-linux-fe4fc2d67d0bfa0a1b5178e4f3c0f3ae7b29f737.tar.gz blackbird-op-linux-fe4fc2d67d0bfa0a1b5178e4f3c0f3ae7b29f737.zip |
drm/i915: Initialize overlay->last_flip properly
commit a6d3e7d35d088b2aabad1688b740e17bfdf566c5 upstream.
Initialize overlay->last_flip properly instead of leaving it zeroed.
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 0d9bdd886f29 ("drm/i915: Convert intel_overlay to request tracking")
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161221144547.27319-1-ville.syrjala@linux.intel.com
(cherry picked from commit 330afdb1df0f3fb48583105493a8f4f8d9e3af36)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/i915/intel_overlay.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c index 42ebd4d21e47..a2655cd5a84e 100644 --- a/drivers/gpu/drm/i915/intel_overlay.c +++ b/drivers/gpu/drm/i915/intel_overlay.c @@ -1431,6 +1431,8 @@ void intel_setup_overlay(struct drm_i915_private *dev_priv) overlay->contrast = 75; overlay->saturation = 146; + init_request_active(&overlay->last_flip, NULL); + regs = intel_overlay_map_regs(overlay); if (!regs) goto out_unpin_bo; |