From patchwork Tue Nov 26 13:27:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uma Shankar X-Patchwork-Id: 13885988 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 2CCCED3B98F for ; Tue, 26 Nov 2024 13:20:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C666510E885; Tue, 26 Nov 2024 13:20:13 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="iNv0m3T8"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2CF5610E899; Tue, 26 Nov 2024 13:20:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1732627209; x=1764163209; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rehJkBC3pvblNXstRixXxh8m67FRuMMLfQ9XcFwQIRU=; b=iNv0m3T8mhmJU5xG8T2fs6d6g9QI0ENmJU43D3fQQfMcAuitRMs78HpY kn1b4U/eGsnynZKvDtVhoPKnv157GHPFYZah4Sth72kQsIhYhcDfqlKkH dSnf+t6lebrWiXBjsOXP8cQsjLOcIApebEzvvnk0TGhviYENd1YRA763f pIJ1vxnuDfbAeqKSBzSD/jUe4blP9yeUtNQBbC5c8S2v+rRdqYcZpfwjK IsfvQIJVYrC4bFobBgGcPu1lfED+2dlTVBvmrbEHXvoVpYFqn9+h98XXc nSveGbHb1Jl1ZWFk8qqWGM1eT7pfYeUAV9bdulIw55MNHGNwyoYj3wf3K g==; X-CSE-ConnectionGUID: 4sAxZEcURuWkvhf+9dHukw== X-CSE-MsgGUID: 4lcBRZusTDqYOvrg8f6Dwg== X-IronPort-AV: E=McAfee;i="6700,10204,11268"; a="44170209" X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="44170209" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2024 05:20:09 -0800 X-CSE-ConnectionGUID: U9Gq+YPdRua/eQMvX4K0NA== X-CSE-MsgGUID: iDvVCuaATZya1P4BNgnnRA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,186,1728975600"; d="scan'208";a="114874695" Received: from cfl-desktop.iind.intel.com ([10.190.239.20]) by fmviesa002.fm.intel.com with ESMTP; 26 Nov 2024 05:20:05 -0800 From: Uma Shankar To: dri-devel@lists.freedesktop.org, intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: ville.syrjala@linux.intel.com, harry.wentland@amd.com, pekka.paalanen@haloniitty.fi, sebastian.wick@redhat.com, jadahl@redhat.com, mwen@igalia.com, contact@emersion.fr, naveen1.kumar@intel.com, Chaitanya Kumar Borah , Uma Shankar Subject: [v2 10/25] drm/i915: Add identifiers for intel color blocks Date: Tue, 26 Nov 2024 18:57:15 +0530 Message-ID: <20241126132730.1192571-11-uma.shankar@intel.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20241126132730.1192571-1-uma.shankar@intel.com> References: <20241126132730.1192571-1-uma.shankar@intel.com> MIME-Version: 1.0 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Chaitanya Kumar Borah Add macros to identify intel color blocks. It will help in mapping drm_color_ops to intel color HW blocks Signed-off-by: Chaitanya Kumar Borah Signed-off-by: Uma Shankar --- drivers/gpu/drm/i915/display/intel_display_limits.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_display_limits.h b/drivers/gpu/drm/i915/display/intel_display_limits.h index f0fa27e365ab..97c960cc16aa 100644 --- a/drivers/gpu/drm/i915/display/intel_display_limits.h +++ b/drivers/gpu/drm/i915/display/intel_display_limits.h @@ -138,4 +138,17 @@ enum hpd_pin { HPD_NUM_PINS }; +/* + * Intel Color Blocks + * + */ + +enum intel_color_block { + CB_PLANE_PRE_CSC_LUT, + CB_PLANE_CSC, + CB_PLANE_POST_CSC_LUT, + + I915_MAX_CB +}; + #endif /* __INTEL_DISPLAY_LIMITS_H__ */