From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 48E32C4829F for ; Wed, 14 Feb 2024 06:45:55 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ECE7610E480; Wed, 14 Feb 2024 06:45:54 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="TV8/Q3tA"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id BF4CE10E480 for ; Wed, 14 Feb 2024 06:45:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1707893153; x=1739429153; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WxeoanSEnzOnB3H+SzipCG7pDrFXXzTlRHjRK7ia1C4=; b=TV8/Q3tAoxpAOF/41uoWTV8ys8Wo6tRiAKZWOKIBiJl/Ar/+UTNMO6XW xzr0jJ5XsNf3TzFmolCHYcuelsCkW3f2rfZyrgK0KK8sIslZMuAExzZov 0lc6MPSNnt4d5zwKCGrNAwjPBmXm75QQZ/p4PU15rSsPzq1LkAOWW6/nF iKGxIG7QpMA+Iq0zr2WmdFuOmJQLLjlleKF2cO03ZFhByBe+wPVgRh6p5 BMPbMx72gLxeBomW5QNNycVIKx7epsn4CySMl9/tSzMEM2uj30V+8chtd gzZElXAghxKIaBZjsmCRhGyoSzUwuFj9NpRM39S+AMmzI8k4TDYWoMkhn Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10982"; a="12645462" X-IronPort-AV: E=Sophos;i="6.06,159,1705392000"; d="scan'208";a="12645462" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2024 22:45:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,159,1705392000"; d="scan'208";a="3427601" Received: from bhanu-nuclab.iind.intel.com ([10.145.169.172]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Feb 2024 22:45:53 -0800 From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Cc: Harry Wentland Subject: [RFC v4 09/22] drm-uapi: Add 3x4 CTM Date: Wed, 14 Feb 2024 12:09:40 +0530 Message-ID: <20240214063953.1285495-10-bhanuprakash.modem@intel.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240214063953.1285495-1-bhanuprakash.modem@intel.com> References: <20240214063953.1285495-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" From: Harry Wentland Signed-off-by: Harry Wentland --- include/drm-uapi/drm_mode.h | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/include/drm-uapi/drm_mode.h b/include/drm-uapi/drm_mode.h index c49526bca..358c5c313 100644 --- a/include/drm-uapi/drm_mode.h +++ b/include/drm-uapi/drm_mode.h @@ -847,6 +847,22 @@ struct drm_color_ctm { __u64 matrix[9]; }; +struct drm_color_ctm_3x4 { + /* + * Conversion matrix with 3x4 dimensions in S31.32 sign-magnitude + * (not two's complement!) format. + * + * TODO what's the format? + * + * out matrix in + * |R| |0 1 2 3 | | R | + * |G| = |4 5 6 7 | x | G | + * |B| |8 9 10 12| | B | + * |1.0| + */ + __u64 matrix[12]; +}; + struct drm_color_lut { /* * Values are mapped linearly to 0.0 - 1.0 range, with 0x0 == 0.0 and @@ -859,7 +875,8 @@ struct drm_color_lut { }; enum drm_colorop_type { - DRM_COLOROP_1D_CURVE + DRM_COLOROP_1D_CURVE, + DRM_COLOROP_CTM_3X4, }; /** -- 2.43.0