From patchwork Fri Jul 20 20:43:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 10538319 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 7E42E6029B for ; Fri, 20 Jul 2018 20:44:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B36B28E92 for ; Fri, 20 Jul 2018 20:44:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5ECD028ECC; Fri, 20 Jul 2018 20:44:52 +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 0FB1628E92 for ; Fri, 20 Jul 2018 20:44:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728142AbeGTVer (ORCPT ); Fri, 20 Jul 2018 17:34:47 -0400 Received: from mail-yw0-f193.google.com ([209.85.161.193]:41244 "EHLO mail-yw0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727412AbeGTVer (ORCPT ); Fri, 20 Jul 2018 17:34:47 -0400 Received: by mail-yw0-f193.google.com with SMTP id q129-v6so4809427ywg.8 for ; Fri, 20 Jul 2018 13:44:51 -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=/9nS4tNYENPQklvsm0uoxuB3Cb0dnT1dyzLiIxXJnew=; b=RanwpgrWruEFomMB8HoeAi1cHlbZvki5qv5g7MyB2BvetgGk7kbiYBezn9F+h22GP/ 3sUYxxrWjy0IjNYbPld1ljuE31N3HbcTZ+FwrCYGRfNWiL0bm0wITu8V9g5qg1qFxycr ekUDyuX9o2mBQmYnqsL5tLvq7GkuhTWFP7plQ= 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=/9nS4tNYENPQklvsm0uoxuB3Cb0dnT1dyzLiIxXJnew=; b=TKB700MjRYkPRRdm8f2YWyxp7bgaDZNyql8iiRxzbAxndZnuX4zm6bqDuDXrvhUh1k jQNSM4c7xi4qw6X6bx+37Pxve2Ogr5/QOshnqgfpih/j56b9C5LoGooddQYwirIW9f2S xP+jreNb/dNoNsBPzz7bdx0mlP8oPlmYq5azwZ7CtwIhTps73Cv1HWL56I6RojaFyVu8 zVBUKYh3uw7rHClOc9Grk1MVwUA5Hk2++n8XCcWnRxAkdmrrpCke78wLt01AFwphrcFL VH0He6uvbjxnllgeznBMNSLnLYQEfZfOhFFHVs4DjczUFJqIQeS4Bi0H6yZkJY4NnTVl jLnQ== X-Gm-Message-State: AOUpUlFOr/G58tusPxzPZfSVjQuK1z2T9sCVkELenVJZpGyGcGikXN0k hPo+W32Kebjoj7GFVCRWxML3Aw== X-Google-Smtp-Source: AAOMgpcG4JpVF83/R7vbveu0kZkvGpQzAhhlDLL2gR5CDkHI6F5QiHKLikfHc8DDvHF5ylYSh/TsQA== X-Received: by 2002:a0d:ecd3:: with SMTP id v202-v6mr1779518ywe.311.1532119490831; Fri, 20 Jul 2018 13:44:50 -0700 (PDT) Received: from rosewood.cam.corp.google.com ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id a2-v6sm2453831ywm.7.2018.07.20.13.44.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 20 Jul 2018 13:44:50 -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 v3 10/19] drm/msm: enable zpos normalization Date: Fri, 20 Jul 2018 16:43:01 -0400 Message-Id: <20180720204315.19054-11-seanpaul@chromium.org> X-Mailer: git-send-email 2.18.0.233.g985f88cf7e-goog In-Reply-To: <20180720204315.19054-1-seanpaul@chromium.org> References: <20180720204315.19054-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 v3: - None 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) {