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 4709FC48BC4 for ; Fri, 23 Feb 2024 04:48:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 87C0210EAFC; Fri, 23 Feb 2024 04:48:34 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="To04bsGN"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id D601D10E09C for ; Fri, 23 Feb 2024 04:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1708663712; x=1740199712; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NZuei9H0m+Kp9VqIdaFKadMnAcJ1Gy/YpFb+voJdcGY=; b=To04bsGN6s8QvfC+f5+Qpm14Tl3z54or5SNVGEud7B3G/nPgH+vpa1Tq vxuHxNePYiPzK90u8H1S6x4ObbybDJ4x62POdW+sR8A1B3NfKJGnHZa9E RaB364pCr+8hyuK9wFMXuWUqgRoXa5q7hyJYKHjVrgQpJZNE0I7HL1N31 LyRrOr46bexJwP66xHBLA+WI/lDsE4CKbZZ9Hjtfn5gQ8iTVLdfwGThzS PXN/E+1uU2uFgqMRqIKl85dQL1UlvJVmyvKFTa71Fm0sXp6Ac6zbonXqc X6bq3LRg1HtZSF8d6Nm6pdsYsCTULliASRQLwTzzHJWKHac3McVZhInIe Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10992"; a="25436421" X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="25436421" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 20:48:32 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,179,1705392000"; d="scan'208";a="6165130" Received: from linux-x299-aorus-gaming-3-pro.iind.intel.com ([10.223.34.130]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Feb 2024 20:48:30 -0800 From: Swati Sharma To: igt-dev@lists.freedesktop.org Cc: ankit.k.nautiyal@intel.com, Swati Sharma Subject: [RFC][PATCH i-g-t 1/2] lib/igt_kms: Add sharpness strength property Date: Fri, 23 Feb 2024 10:20:12 +0530 Message-Id: <20240223045013.398654-2-swati2.sharma@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240223045013.398654-1-swati2.sharma@intel.com> References: <20240223045013.398654-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. Signed-off-by: Swati Sharma --- 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 1b4d0d761..0cb7aab48 100644 --- a/lib/igt_kms.c +++ b/lib/igt_kms.c @@ -694,6 +694,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_SHARPENESS_STRENGTH] = "SHARPENESS_STRENGTH", }; const char * const igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = { @@ -2434,6 +2435,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_SHARPENESS_STRENGTH)) + igt_pipe_obj_set_prop_value(pipe, IGT_CRTC_SHARPENESS_STRENGTH, 0); + pipe->out_fence_fd = -1; } diff --git a/lib/igt_kms.h b/lib/igt_kms.h index b3882808b..3bf4afff0 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_SHARPENESS_STRENGTH, IGT_NUM_CRTC_PROPS }; -- 2.25.1