From patchwork Tue Dec 11 18:42:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fritz Koenig X-Patchwork-Id: 10724439 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B2D9F14E2 for ; Tue, 11 Dec 2018 18:42:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A6DAB2B60A for ; Tue, 11 Dec 2018 18:42:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B38F2B630; Tue, 11 Dec 2018 18:42:51 +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,DKIM_ADSP_CUSTOM_MED, 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 6323C2B60A for ; Tue, 11 Dec 2018 18:42:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3EE546E3B6; Tue, 11 Dec 2018 18:42:50 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi1-x24a.google.com (mail-oi1-x24a.google.com [IPv6:2607:f8b0:4864:20::24a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3056F6E3AF for ; Tue, 11 Dec 2018 18:42:49 +0000 (UTC) Received: by mail-oi1-x24a.google.com with SMTP id v184so8284569oie.6 for ; Tue, 11 Dec 2018 10:42:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=7O2ksbJgYFIj9Lm1LAzro/cNWuMxsHW99z/ZpZfRHOc=; b=ik3vmC0OPx5ICxYFLPm1vaHJImvvoqKfocxKgqp3dCuJYpPI8j1OgHolBPMunVc+bY OnYaY4Hl91Rnlmx49q4kK7gOHtfY1Xoc3RhkRseshwug93ny1Ls9MrTyYTOKv8eLipqK DwGGUj3Yg3B8t00Fd/egXnET9TEkEf2UshLAHs99gI0akWcBSnuwypuluGm7pWvD9Gx6 spyviuRTxu+mBfQHbbq7tqy8kABSoQZ/kic2JaD8AsFrTd8sBKuJE2XURWB/noE1AKYi P9/PqoAjFvXG4BzrsOJhsLeS+8YBtIQoO6t0roQlBw4FNH1k6gaerXFkKPhQRWuVDGuz WfBQ== X-Gm-Message-State: AA+aEWbt+vkNKr5sxxeuS3NrcVMbZv1hWRTPUPXsyHnNqDFzkgVm8qac 8CRB0VduqvbdhsmCK/xZdqDW9cB06xO+ewKeHDCUGrYNmeA8W0Mn6AphyAe95lShTjY+KIXKV+D OJouScuKm7GJcje5NZ4pygclvPKd6IBnacKiyoZVVEAWhDAC8m62ljk3tTZhTKMvozygfPltzqS 6jOXM= X-Google-Smtp-Source: AFSGD/WR2DrHOoqRSARdxtvis5tZ7KYmM4qoJHMnXrOooYgLCJaWqT1JYeUATb7lkq2Vic6ic9TwfUYDagNRVA== X-Received: by 2002:aca:be87:: with SMTP id o129mr13562062oif.52.1544553768479; Tue, 11 Dec 2018 10:42:48 -0800 (PST) Date: Tue, 11 Dec 2018 10:42:23 -0800 In-Reply-To: <20181211184224.131478-1-frkoenig@google.com> Message-Id: <20181211184224.131478-4-frkoenig@google.com> Mime-Version: 1.0 References: <20181211184224.131478-1-frkoenig@google.com> X-Mailer: git-send-email 2.20.0.rc2.403.gdbc3b29805-goog Subject: [PATCH 4/5] drm/msm/dpu: Initialize supported modifiers From: Fritz Koenig To: dri-devel@lists.freedesktop.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: , Cc: Fritz Koenig , sean@poorly.run Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Pass list of supported modifiers to plane init. Signed-off-by: Fritz Koenig Reviewed-by: Sean Paul --- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c index 9381c8af76d7..d2d4720f6f8c 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c @@ -119,6 +119,12 @@ struct dpu_plane { bool debugfs_default_scale; }; +static const uint64_t supported_format_modifiers[] = { + DRM_FORMAT_MOD_QCOM_COMPRESSED, + DRM_FORMAT_MOD_LINEAR, + DRM_FORMAT_MOD_INVALID +}; + #define to_dpu_plane(x) container_of(x, struct dpu_plane, base) static struct dpu_kms *_dpu_plane_get_kms(struct drm_plane *plane) @@ -1521,7 +1527,7 @@ struct drm_plane *dpu_plane_init(struct drm_device *dev, ret = drm_universal_plane_init(dev, plane, 0xff, &dpu_plane_funcs, format_list, num_formats, - NULL, type, NULL); + supported_format_modifiers, type, NULL); if (ret) goto clean_sspp;