From patchwork Sun Aug 19 19:12:32 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 1344881 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 6C4E23FC64 for ; Sun, 19 Aug 2012 20:31:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 64A2BA104D for ; Sun, 19 Aug 2012 13:31:24 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wg0-f43.google.com (mail-wg0-f43.google.com [74.125.82.43]) by gabe.freedesktop.org (Postfix) with ESMTP id 1D4ACA1024 for ; Sun, 19 Aug 2012 13:20:33 -0700 (PDT) Received: by mail-wg0-f43.google.com with SMTP id dr1so4210645wgb.12 for ; Sun, 19 Aug 2012 13:20:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=qqxJTto6iBGOehEmDaKMfgjjm1SsV82ikI3jk+ShunM=; b=b39XX2dtzq4/fIAnEyYLOCjQqeidEHqKF56GcpVS7GGGAQN4+j1ZWDpErjA9ZiNgv7 qT/b2MOXxodRQghryVbfZWZT526riGaSlpMQoXS+thyK0dm7mmfShAmEubUhZ4+efl84 Sg+1dHdBctgkepIEHRRuyxf8dCwJnQtZurHKg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=qqxJTto6iBGOehEmDaKMfgjjm1SsV82ikI3jk+ShunM=; b=f9CYd5ktc3kyylhJ56dMG7h5+KaSzYH2sLmJ+Mc5oJmGfbcBZOXrUmrrK6Z86cnjXU G6VxnZLXyMv+h/EZGSLc0XCix7UEWr22lsmBWF3VugThUZi7ADT82BSr73URp2UYUJ4p bOOU8ylg9zKKLLqoxLKxk3honFiPlj3Vx+1TnXpFGym5ofQ10TmWDGyJJuV0N+J34eIv 1mxoz32qLwEVvUL2ZAMQKy0BHiDooR8HjQ6PES8gDGEgzUAz9LpVFZ75rTtDyJgJKz+Q JqxgkqefRSX+7jpwA+cRxiT1y4b3C3AIBQ2HIUrIGAm+C740O+gjgvHPYy3YptFSjqCc zuPA== Received: by 10.180.86.133 with SMTP id p5mr22681189wiz.17.1345407633622; Sun, 19 Aug 2012 13:20:33 -0700 (PDT) Received: from wespe.ffwll.local (178-83-130-250.dynamic.hispeed.ch. [178.83.130.250]) by mx.google.com with ESMTPS id fu8sm24194367wib.5.2012.08.19.13.20.32 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 19 Aug 2012 13:20:32 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Sun, 19 Aug 2012 21:12:32 +0200 Message-Id: <1345403595-9678-16-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.7.11.2 In-Reply-To: <1345403595-9678-1-git-send-email-daniel.vetter@ffwll.ch> References: <1345403595-9678-1-git-send-email-daniel.vetter@ffwll.ch> X-Gm-Message-State: ALoCoQl+PTwcuhB+XJJL/TE6cIhAg58cRuIZiKbQKsZRtxBVFesvTJZ4P1Wg4ouH5lXWPc8wDjXl Cc: Daniel Vetter Subject: [Intel-gfx] [PATCH 15/58] drm/i915: call set_base directly X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org And drop the check, we always have it. Signed-Off-by: Daniel Vetter Reviewed-by: Jesse Barnes --- drivers/gpu/drm/i915/intel_display.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 33a5191..5dbe03a 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -6584,7 +6584,6 @@ static void intel_crtc_reset(struct drm_crtc *crtc) static struct drm_crtc_helper_funcs intel_helper_funcs = { .mode_fixup = intel_crtc_mode_fixup, .mode_set = intel_crtc_mode_set, - .mode_set_base = intel_pipe_set_base, .mode_set_base_atomic = intel_pipe_set_base_atomic, .load_lut = intel_crtc_load_lut, .disable = intel_crtc_disable, @@ -6646,7 +6645,6 @@ static int intel_crtc_set_config(struct drm_mode_set *set) bool fb_changed = false; /* if true and !mode_changed just do a flip */ struct drm_connector *save_connectors, *connector; int count = 0, ro, fail = 0; - struct drm_crtc_helper_funcs *crtc_funcs; struct drm_mode_set save_set; int ret; int i; @@ -6662,7 +6660,6 @@ static int intel_crtc_set_config(struct drm_mode_set *set) if (!set->crtc->helper_private) return -EINVAL; - crtc_funcs = set->crtc->helper_private; if (!set->mode) set->fb = NULL; @@ -6824,10 +6821,6 @@ static int intel_crtc_set_config(struct drm_mode_set *set) } } - /* mode_set_base is not a required function */ - if (fb_changed && !crtc_funcs->mode_set_base) - mode_changed = true; - if (mode_changed) { set->crtc->enabled = drm_helper_crtc_in_use(set->crtc); if (set->crtc->enabled) { @@ -6860,8 +6853,8 @@ static int intel_crtc_set_config(struct drm_mode_set *set) old_fb = set->crtc->fb; if (set->crtc->fb != set->fb) set->crtc->fb = set->fb; - ret = crtc_funcs->mode_set_base(set->crtc, - set->x, set->y, old_fb); + ret = intel_pipe_set_base(set->crtc, + set->x, set->y, old_fb); if (ret != 0) { set->crtc->fb = old_fb; goto fail;