From patchwork Mon Jul 9 17:31:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10515363 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 02CCB6032A for ; Mon, 9 Jul 2018 17:34:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFE1828DCC for ; Mon, 9 Jul 2018 17:34:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D42DA28DD3; Mon, 9 Jul 2018 17:34:33 +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 C9B2328DCC for ; Mon, 9 Jul 2018 17:34:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933619AbeGIRec (ORCPT ); Mon, 9 Jul 2018 13:34:32 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:33986 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933537AbeGIReb (ORCPT ); Mon, 9 Jul 2018 13:34:31 -0400 Received: by mail-yw0-f195.google.com with SMTP id j68-v6so6829979ywg.1 for ; Mon, 09 Jul 2018 10:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=m/SssiDwuY7+lh806oaQCjn2LF94SeEy/uc/ZIONxSU=; b=Zv50ZVNftBGU67alDkgVFwTjY+ECxZDDThabgpMjWkvr39QhFz9SkVAJf9c0z3Bh5e pf0cAUR4FqgkorxlopQCQ3MZOpS7zYx4iJ5B6IVT5rReErU7KkfaTHKiox45wnOr3mqq cb8OnwGTFtMWAm/BZLonx/hjdB8e6fgQrAUJ4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=m/SssiDwuY7+lh806oaQCjn2LF94SeEy/uc/ZIONxSU=; b=GpmhXKjQvzJg5LD8gfeyptI4DB8q361FCIgkpb+vtsjmUBpCKNPsNJO1MZFMPsZhNd wkhXhf4rPpcdSfk4EZ31ppYMUmU0JnnuhH0fSuMv21G8BfDdhYTPA7dkPR19RqUb51/t +AOzLaA9/WQeN6hnBLZ4ozymc9LeJdZJ/rZ4AdBSpNdaxb5WaZZBxgshvV02t05m8zj7 F5qm/sxNGtOSrGDsNN6pgh0Zh7XUm8m1oSzEwIOQtgM+mtkL/PvqEiPU2yAfAl74rEmW xF3e9AYx1S/V74cjSNIITwDcNW/QZa2Ro3Z55PQUx/YFZ4jSbvpsCe0HbaKTFj57icMw 01yw== X-Gm-Message-State: APt69E3yhpNdstCQBCSB73N/Va1yjgiJARLIJLBCFumSkgh1gcoHBj6x G53MYRd8hZf17OHi4qkI1oXNaw== X-Google-Smtp-Source: AAOMgpfSDbcKDGD9hP++GIbs9CVTLKrqJlpfhD/lM2+OskpTTlnFwH0etFlP/pq1Zn8m6238A26SQg== X-Received: by 2002:a0d:f5c7:: with SMTP id e190-v6mr9290967ywf.277.1531157671100; Mon, 09 Jul 2018 10:34:31 -0700 (PDT) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id s206-v6sm5885495ywc.55.2018.07.09.10.34.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 10:34:30 -0700 (PDT) From: Sean Paul To: abhinavk@codeaurora.org, architt@codeaurora.org, chandanu@codeaurora.org, jsanka@codeaurora.org, jcrouse@codeaurora.org, ryadav@codeaurora.org, seanpaul@chromium.org, skolluku@codeaurora.org, dri-devel@lists.freedesktop.org, robdclark@gmail.com, airlied@linux.ie, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, nganji@codeaurora.org, hoegsberg@chromium.org, dovizu@chromium.org, robh+dt@kernel.org Subject: [PATCH 10/21] drm/msm: enable zpos normalization Date: Mon, 9 Jul 2018 13:31:46 -0400 Message-Id: <20180709173200.238457-11-seanpaul@chromium.org> X-Mailer: git-send-email 2.18.0.203.gfac676dfb9-goog In-Reply-To: <20180709173200.238457-1-seanpaul@chromium.org> References: <20180709173200.238457-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 From: Jeykumar Sankaran Enable drm core zpos normalization for planes. changes in v2: - none changes in v3: - rebased on https://gitlab.freedesktop.org/seanpaul/ dpu-staging/commit/481d29d31cd629fd216381b53de5695f645465d5 Signed-off-by: Jeykumar Sankaran Reviewed-by: Sean Paul Signed-off-by: Sean Paul --- drivers/gpu/drm/msm/msm_drv.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/msm/msm_drv.c b/drivers/gpu/drm/msm/msm_drv.c index 2608d3f77956..9c760cee5156 100644 --- a/drivers/gpu/drm/msm/msm_drv.c +++ b/drivers/gpu/drm/msm/msm_drv.c @@ -439,6 +439,9 @@ static int msm_drm_init(struct device *dev, struct drm_driver *drv) goto fail; } + /* Enable normalization of plane zpos */ + ddev->mode_config.normalize_zpos = true; + if (kms) { ret = kms->funcs->hw_init(kms); if (ret) {