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 ABBBED3DEAC for ; Fri, 18 Oct 2024 19:03:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4819F10E972; Fri, 18 Oct 2024 19:03:48 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="CrGt8loQ"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0F25B10E970 for ; Fri, 18 Oct 2024 19:03:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1729278226; x=1760814226; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2tUfRKJE0B0JpwhQMfeTaEBJgFvIpOUqNyYTXKzPPCU=; b=CrGt8loQT9ZS5Jnkako/fxkzGRecXyrm6K5JH3Tgp6i0e8EIWJC6zf6y hjQ01SdG5bmUjjD60F426Xr7TdiskU4hHBC08jcrqziq+F/hY4d6mC+oJ KvtAeSc2h2+15R70hx6MPEwZam+HDGl8AwniVd6ukql9Z/8dkIN+zqdM5 9sWbTNPqMhjiVXqZWIWQdQYPjnzkPT5VHob5/pTQ21IlIRODFPE7keR6W osm4bKk/cwnBbbbPF+wzw5B3Fq9gcuo7CISr5CBVPoseDdE+ahqifHSIT Mq0ytRJD0b5SkU5iv5E5bEIqqlwQEIbskC2fAuT/mPuHfjQ9RbYjssczz Q==; X-CSE-ConnectionGUID: I37UPBgPSQmOCM7LjMUyWQ== X-CSE-MsgGUID: g81xyl7BQcGjppTfvSM47w== X-IronPort-AV: E=McAfee;i="6700,10204,11229"; a="40218780" X-IronPort-AV: E=Sophos;i="6.11,214,1725346800"; d="scan'208";a="40218780" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2024 12:03:46 -0700 X-CSE-ConnectionGUID: 1oJWQ74dTzKxyfEVDPmO+A== X-CSE-MsgGUID: mYKx9A0iRoiDqOfko2Lmsg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,214,1725346800"; d="scan'208";a="102247814" Received: from linux-x299-aorus-gaming-3-pro.iind.intel.com ([10.223.34.130]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2024 12:03:45 -0700 From: Swati Sharma To: igt-dev@lists.freedesktop.org Cc: Swati Sharma , Mohammed Thasleem Subject: [PATCH i-g-t v7 1/4] lib/igt_kms: Added "sharpness strength" as crtc property Date: Sat, 19 Oct 2024 00:36:24 +0530 Message-Id: <20241018190627.1367970-2-swati2.sharma@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20241018190627.1367970-1-swati2.sharma@intel.com> References: <20241018190627.1367970-1-swati2.sharma@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" Added "sharpness strength" as crtc property. v2: Replace SHARPENESS_STRENGTH with SHARPNESS_STRENGTH. (Nemesa) Signed-off-by: Swati Sharma Signed-off-by: Mohammed Thasleem --- lib/igt_kms.c | 4 ++++ lib/igt_kms.h | 1 + 2 files changed, 5 insertions(+) diff --git a/lib/igt_kms.c b/lib/igt_kms.c index b40470c02..73b024e0b 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -700,6 +700,7 @@ const char * const igt_crtc_prop_names[IGT_NUM_CRTC_PROPS] = { [IGT_CRTC_OUT_FENCE_PTR] = "OUT_FENCE_PTR", [IGT_CRTC_VRR_ENABLED] = "VRR_ENABLED", [IGT_CRTC_SCALING_FILTER] = "SCALING_FILTER", + [IGT_CRTC_SHARPNESS_STRENGTH] = "SHARPNESS_STRENGTH", }; const char * const igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = { @@ -2562,6 +2563,9 @@ static void igt_pipe_reset(igt_pipe_t *pipe) if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_SCALING_FILTER)) igt_pipe_obj_set_prop_enum(pipe, IGT_CRTC_SCALING_FILTER, "Default"); + if (igt_pipe_obj_has_prop(pipe, IGT_CRTC_SHARPNESS_STRENGTH)) + igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_SHARPNESS_STRENGTH, 0); + pipe->out_fence_fd = -1; } diff --git a/lib/igt_kms.h b/lib/igt_kms.h index 25ba50916..9bba0924d 100644 --- a/lib/igt_kms.h +++ b/lib/igt_kms.h @@ -163,6 +163,7 @@ enum igt_atomic_crtc_properties { IGT_CRTC_OUT_FENCE_PTR, IGT_CRTC_VRR_ENABLED, IGT_CRTC_SCALING_FILTER, + IGT_CRTC_SHARPNESS_STRENGTH, IGT_NUM_CRTC_PROPS }; -- 2.25.1