[PATCH 07/22] drm/i915: Update CRTC properties after modeset
ville.syrjala at linux.intel.com
ville.syrjala at linux.intel.com
Mon Nov 12 09:32:45 PST 2012
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
Update cursor related CRTC properties after a modeset. The cursor
properties aren't handled by the drm core since not all CRTCs have
cursors.
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
drivers/gpu/drm/i915/intel_display.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 958b21b..12d4e02 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -5802,6 +5802,8 @@ static int intel_crtc_cursor_set(struct drm_crtc *crtc,
if (old_obj)
intel_crtc_cursor_bo_unref(crtc, old_obj);
+ intel_crtc_update_properties(crtc);
+
return 0;
}
@@ -5814,6 +5816,8 @@ static int intel_crtc_cursor_move(struct drm_crtc *crtc, int x, int y)
intel_crtc_update_cursor(crtc, true);
+ intel_crtc_update_properties(crtc);
+
return 0;
}
@@ -6763,6 +6767,8 @@ static int intel_crtc_page_flip(struct drm_crtc *crtc,
trace_i915_flip_request(intel_crtc->plane, obj);
+ intel_crtc_update_properties(crtc);
+
return 0;
cleanup_pending:
@@ -7490,6 +7496,7 @@ next_encoder:
static int intel_crtc_set_config(struct drm_mode_set *set)
{
struct drm_device *dev;
+ struct drm_crtc *crtc;
struct drm_mode_set save_set;
struct intel_set_config *config;
int ret;
@@ -7563,6 +7570,10 @@ static int intel_crtc_set_config(struct drm_mode_set *set)
intel_set_config_free(config);
+ /* changes in one CRTC can affect the others */
+ list_for_each_entry(crtc, &dev->mode_config.crtc_list, head)
+ intel_crtc_update_properties(crtc);
+
return 0;
fail:
@@ -7574,6 +7585,10 @@ fail:
save_set.x, save_set.y, save_set.fb))
DRM_ERROR("failed to restore config after modeset failure\n");
+ /* changes in one CRTC can affect the others */
+ list_for_each_entry(crtc, &dev->mode_config.crtc_list, head)
+ intel_crtc_update_properties(crtc);
+
out_config:
intel_set_config_free(config);
return ret;
--
1.7.8.6
More information about the dri-devel
mailing list