Message ID | 20230109143846.1966301-14-mwen@igalia.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2196681wrt; Mon, 9 Jan 2023 06:48:34 -0800 (PST) X-Google-Smtp-Source: AMrXdXsVMwtMdEMSGcBWzFLGPp/W8xJsicmADk1XcFNwsUAx8yX4IaQV66rn+thkJqKt1OawaXtL X-Received: by 2002:a17:906:850c:b0:7c1:9020:72a9 with SMTP id i12-20020a170906850c00b007c1902072a9mr52167262ejx.43.1673275714504; Mon, 09 Jan 2023 06:48:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673275714; cv=none; d=google.com; s=arc-20160816; b=erVX9d4FIlI+OyOld/FVwxXRt5aPLROcx+Eh3g/v+/8i4Kw02VdxqCm9UHw9CBCdBI NxXvxJV3zkyAFVYLa5AWV2fnW8C3B3zDs4s9aWvs4RZgfhTXvCgLQst7aeOkQ5BNJeYv Aq7y8EIfmtbf0Uj3aya3+fX9W/cTYR94+RXzw3OFLlxFC3RpDmgIDhcPhl9D4gyMJJem zllEZgfMeZUbUGSv4oIu3GBmWL6jWY4ZgYVbbXNLTKoOpcDiE2pTsb4fQ0usLDvWwLAM G8F2KLUjlpWYcSagVj5/a/qLB1wNbDF5giibSW/bvmjta8oSXEUI6xwy2iPgPB9S9eMP oBag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=cUoeBdofxkXT9xFOFSawmIrJOWQdaUxVUBcCykFvQKk=; b=dJasCxZ4rAS0TJErdOAOraJGy+kl5N6PUI6xD28++KWeb22+srzTKMoItivN4WDpHc W4D5/4GhApmftOgsEYFnqbkte/FQPyi4aQGv3wlxUe67mX5+jF8azAUUHLOU/i1Xocx5 5E7IWt1XE+hWmoDD5we/gPLuZnGDHuFB7Mj+fYgO9Uy+o5DfDxWWlMYUEOQHYoQ4ny7v 5W8L3RZIkMrKJlJmW//GKhYirt3wVBazOR/+/wvOad/SID62WeQIYYn7Pwx4ruUn7dyA 313Wxo5sDBPJuTZ+gQhDLH9A0owrsbKK9jXwSAdgFiKPhz+iErmBh5oOFKKi+YqYEBRk jVVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=PbpZ4nD0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xi3-20020a170906dac300b0084c3a089f39si10139142ejb.350.2023.01.09.06.48.10; Mon, 09 Jan 2023 06:48:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@igalia.com header.s=20170329 header.b=PbpZ4nD0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234464AbjAIOpy (ORCPT <rfc822;274620705z@gmail.com> + 99 others); Mon, 9 Jan 2023 09:45:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35094 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233491AbjAIOpL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 9 Jan 2023 09:45:11 -0500 Received: from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2E383591D for <linux-kernel@vger.kernel.org>; Mon, 9 Jan 2023 06:44:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com; s=20170329; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=cUoeBdofxkXT9xFOFSawmIrJOWQdaUxVUBcCykFvQKk=; b=PbpZ4nD0OTMS3q3O0nQsr54b3O GqC9EJeBrL8zeqDYc6S74QTyTMFncpixOmXOs+QL71atJRURwswLPZ3rkffhW6th+uJefkjfvPauc nzuvo9Znfu+d/uybFmKXDkwG/qlQyv7pjEyyc8DkWC4ZskaIJcJXw4RhL22kho7U5aLcyAKSFPfJh sG3B/0blpbXjNxJNmFQcyr8tcpLhsmjRCCCdYZbeg/3fYR+/yvOav9W9rDFj9qeH2xM1kFeR1D0WL P6SRgKAIY2xPlKhUlPK/kcdRGw9L2IQIxHbL7micTwx9852i3bEHw8AHXVl0K5pDyU3gpqL3aqcNp s+1cN9Tg==; Received: from [41.74.137.107] (helo=killbill.home) by fanzine2.igalia.com with esmtpsa (Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim) id 1pEtNu-003TyM-OC; Mon, 09 Jan 2023 15:44:22 +0100 From: Melissa Wen <mwen@igalia.com> To: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch Cc: Joshua Ashton <joshua@froggi.es>, alex.hung@amd.com, nicholas.kazlauskas@amd.com, sungjoon.kim@amd.com, seanpaul@chromium.org, bhawanpreet.lakha@amd.com, Shashank Sharma <shashank.sharma@amd.com>, ville.syrjala@linux.intel.com, maarten.lankhorst@linux.intel.com, mripard@kernel.org, tzimmermann@suse.de, kernel-dev@igalia.com, laurent.pinchart+renesas@ideasonboard.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [RFC PATCH v2 13/18] drm/amd/display: Define 3D LUT struct for HDR planes Date: Mon, 9 Jan 2023 13:38:41 -0100 Message-Id: <20230109143846.1966301-14-mwen@igalia.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230109143846.1966301-1-mwen@igalia.com> References: <20230109143846.1966301-1-mwen@igalia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754556755516497038?= X-GMAIL-MSGID: =?utf-8?q?1754556755516497038?= |
Series |
Add DRM CRTC 3D LUT interface
|
|
Commit Message
Melissa Wen
Jan. 9, 2023, 2:38 p.m. UTC
From: Alex Hung <alex.hung@amd.com> Add a 3D LUT mode supported by amdgpu driver. Note: A patchset "IGT tests for pre-blending 3D LUT interfaces" for this proposal is sent to IGT mailing list. Signed-off-by: Alex Hung <alex.hung@amd.com> --- .../gpu/drm/amd/display/modules/color/color_gamma.h | 12 ++++++++++++ 1 file changed, 12 insertions(+)
diff --git a/drivers/gpu/drm/amd/display/modules/color/color_gamma.h b/drivers/gpu/drm/amd/display/modules/color/color_gamma.h index 2893abf48208..8e159b1eb9c6 100644 --- a/drivers/gpu/drm/amd/display/modules/color/color_gamma.h +++ b/drivers/gpu/drm/amd/display/modules/color/color_gamma.h @@ -27,6 +27,7 @@ #define COLOR_MOD_COLOR_GAMMA_H_ #include "color_table.h" +#include <drm/drm_fourcc.h> struct dc_transfer_func; struct dc_gamma; @@ -35,6 +36,17 @@ struct dc_rgb_fixed; struct dc_color_caps; enum dc_transfer_func_predefined; +/* + * 3D LUT mode for 17x17x17 LUT and 12 bits of color depth + */ +static const struct drm_mode_lut3d_mode lut3d_mode_17_12bit = { + .lut_size = 17, + .lut_stride = {17, 17, 18}, + .bit_depth = 12, + .color_format = DRM_FORMAT_XRGB16161616, + .flags = 0, +}; + /* For SetRegamma ADL interface support * Must match escape type */