[Intel-gfx] [PATCH] drm/i915: Initialize overlay->last_flip properly
ville.syrjala at linux.intel.com
ville.syrjala at linux.intel.com
Wed Dec 21 14:45:47 UTC 2016
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
Initialize overlay->last_flip properly instead of leaving it zeroed.
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
drivers/gpu/drm/i915/intel_overlay.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_overlay.c b/drivers/gpu/drm/i915/intel_overlay.c
index 489c14ff2cb9..86e21d7468c4 100644
--- a/drivers/gpu/drm/i915/intel_overlay.c
+++ b/drivers/gpu/drm/i915/intel_overlay.c
@@ -1427,6 +1427,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;
--
2.10.2
More information about the Intel-gfx
mailing list