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: 10515365 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 1A3256032A for ; Mon, 9 Jul 2018 17:34:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 03E6828DCC for ; Mon, 9 Jul 2018 17:34:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EC20D28DD3; Mon, 9 Jul 2018 17:34:34 +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=-5.2 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 9870628DCC for ; Mon, 9 Jul 2018 17:34:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3341B6E598; Mon, 9 Jul 2018 17:34:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-yw0-x243.google.com (mail-yw0-x243.google.com [IPv6:2607:f8b0:4002:c05::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id D61AB6E598 for ; Mon, 9 Jul 2018 17:34:31 +0000 (UTC) Received: by mail-yw0-x243.google.com with SMTP id w76-v6so6824494ywg.4 for ; Mon, 09 Jul 2018 10:34:31 -0700 (PDT) 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=Z+aGlEnjGd6L/SpWwY8RmcqneY87dZi7O73gP04wV63Z3+UlCL/5IQ1bM3d1fX4hc+ 6oFhM8/t4RFb8wxhnqMD96YJf2NOBGmxJNcpUh0YGRlAb+pM6hK+UVeVgWfIc7pPlhSR 2VXk6yGLtY5L1B/zskWc4+i39Q0pebwPaxyH8AWgg6V6WjiCWG06vV5O1K+6VDNtLFfb CWmzYxzInvueOQp1h4FZ+nkhStdUvtK2qJ4cQGte5KTpO7C6CDnOM3OxJUGhI63tJseD ouhf84B8ttefGzIuoouTMZbWGsEK9tFL3Au1Yk7iuWJV99pxz/qZRsV4EUn5h73Y5BXq DxjQ== X-Gm-Message-State: APt69E2CW1wn54LmYHtYdqcFYohf/T8d/LGU7Zy31vyzRW/CjNRzwODy 4uqTGC0EN6EP0wK7BUj6XdmZdg== 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> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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) {