From patchwork Thu Jun 28 18:28:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10494701 X-Patchwork-Delegate: agross@codeaurora.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4A8E460230 for ; Thu, 28 Jun 2018 18:29:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 509542A762 for ; Thu, 28 Jun 2018 18:29:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 44F312A77C; Thu, 28 Jun 2018 18:29:21 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E16BC2A780 for ; Thu, 28 Jun 2018 18:29:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030481AbeF1S3R (ORCPT ); Thu, 28 Jun 2018 14:29:17 -0400 Received: from mail-yb0-f196.google.com ([209.85.213.196]:46429 "EHLO mail-yb0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967790AbeF1S3P (ORCPT ); Thu, 28 Jun 2018 14:29:15 -0400 Received: by mail-yb0-f196.google.com with SMTP id s14-v6so2374028ybp.13 for ; Thu, 28 Jun 2018 11:29:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BIzSF/Z21+2VQMKbEQpT7wrBFdR5bpR2SrwL0korLY8=; b=TskjQTVfVoei3Z52TdSgrgVJJteUfK7laKDFBpve80gyExMIGeQQ3g6nGjZPbPttda CFSZjPC2zzPYAttqHHE65hRdCME/sfC1n4RxsVaGw/eehyImyyjDezMbugzfX+Sg48DK S2ApIQKZT/hUpnjnGzGkV7JB7lEhU7sNK4VYU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BIzSF/Z21+2VQMKbEQpT7wrBFdR5bpR2SrwL0korLY8=; b=PlzYYlcSEqpD9AOXYGlbGfzTPPBtbJVmRzxlHv3tugFRPO2XaVih1+kAmiqVd4jvoA NWOGHPwblQUmD9lJ8dwoK2GzWB/1SI2Bs3GWTf6OjVOP7T9xNSow61KWbagLH99wX2jZ 8BiMxB0+nW4upgKbGcVyOeb/kgbjpuMPVjRBOs0z7Ie+dIqbg+ykHMS1w/dlau3zGd/x vCZHLkcL9woWrgAC2UV5WNo2a1wMF2PsXs24PCnMyRv1Wy6OqV3YALa5doT9AqwpNpAH H7HiBLZjTgkLmtjYb/G4sbAj+2NK3R0/CriaxcVJ5rtDWigzmC4+C84OiLLIp54L8TeC 1ruQ== X-Gm-Message-State: APt69E2tsOZsgBf5sWPES9RFdb2JZiLMALAsdFw+klAPNXgxwJRNyoQC QhuMNvzZkG/bRNxEnt9EFc83mA== X-Google-Smtp-Source: ADUXVKJFgEbeCfyTaP856NXasnjSvrrWzPlvq3mlYDmaxPCYJkrFFn5tqJlS/JeUkYU081+IsbUqAg== X-Received: by 2002:a25:2746:: with SMTP id n67-v6mr6116222ybn.200.1530210554578; Thu, 28 Jun 2018 11:29:14 -0700 (PDT) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id g145-v6sm2732140ywe.17.2018.06.28.11.29.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 11:29:13 -0700 (PDT) From: Sean Paul To: freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org Cc: robdclark@gmail.com, hoegsberg@chromium.org, jsanka@codeaurora.org, abhinavk@codeaurora.org, Sean Paul Subject: [DPU PATCH 07/15] drm/msm: Remove _dpu_format_calc_offset_linear() Date: Thu, 28 Jun 2018 14:28:58 -0400 Message-Id: <20180628182906.84926-8-seanpaul@chromium.org> X-Mailer: git-send-email 2.18.0.rc2.346.g013aa6912e-goog In-Reply-To: <20180628182906.84926-1-seanpaul@chromium.org> References: <20180628182906.84926-1-seanpaul@chromium.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP It's unused. Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c | 32 --------------------- 1 file changed, 32 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c index 12dc6a9d3b25..44fefc97e1b3 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c @@ -1092,38 +1092,6 @@ int dpu_format_populate_layout( return ret; } -static void _dpu_format_calc_offset_linear(struct dpu_hw_fmt_layout *source, - u32 x, u32 y) -{ - if ((x == 0) && (y == 0)) - return; - - source->plane_addr[0] += y * source->plane_pitch[0]; - - if (source->num_planes == 1) { - source->plane_addr[0] += x * source->format->bpp; - } else { - uint32_t xoff, yoff; - uint32_t v_subsample = 1; - uint32_t h_subsample = 1; - - _dpu_get_v_h_subsample_rate(source->format->chroma_sample, - &v_subsample, &h_subsample); - - xoff = x / h_subsample; - yoff = y / v_subsample; - - source->plane_addr[0] += x; - source->plane_addr[1] += xoff + - (yoff * source->plane_pitch[1]); - if (source->num_planes == 2) /* pseudo planar */ - source->plane_addr[1] += xoff; - else /* planar */ - source->plane_addr[2] += xoff + - (yoff * source->plane_pitch[2]); - } -} - int dpu_format_check_modified_format( const struct msm_kms *kms, const struct msm_format *msm_fmt,