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 179D0C25B75 for ; Mon, 3 Jun 2024 08:02:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 76A4210E2F7; Mon, 3 Jun 2024 08:02:00 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="I35CYyOo"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by gabe.freedesktop.org (Postfix) with ESMTPS id D120F10E2F7 for ; Mon, 3 Jun 2024 08:01:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1717401717; x=1748937717; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xHIl62QTL9cQYckMMIY3lEcZqKikqMkjvxl3JnNKBZA=; b=I35CYyOoGYx37Ol/b6dn2WaSP2SM22SYsfBL8UTKsVBUy/Y0QwZBPaNO sTUtDlZvQ1uAqCKKAI1xHWDoxDrtJndYI1whrL1Z9TGIAaGKiV3AV5zyM +J73MpfbTeP2YX5vrrqGNtJVqFHp9zVl6LMpnuttFsx+bpThpw0AAo6F9 y9h8es8la9Ypw27p35DKMbdqZjmYhT646JIw28dqNV6Doq5vfZI/x2Dk5 9s8aWHicVdZ+X1q7mSPKQjhApitj7iXEfJIBkxzMx7HzqzjrR2eNZDznj K+7Ex6n83XgZOglIu9WFfEA6EkQ3rL9vlkN6kxlpkDWI9SBTG0FmFkGX0 Q==; X-CSE-ConnectionGUID: Emqo6bgYQxm6NInWV+P7rw== X-CSE-MsgGUID: ALMKduYeRSanpUiJxOZAjw== X-IronPort-AV: E=McAfee;i="6600,9927,11091"; a="14107477" X-IronPort-AV: E=Sophos;i="6.08,211,1712646000"; d="scan'208";a="14107477" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 01:01:57 -0700 X-CSE-ConnectionGUID: brLuFS7XRu2WAZLl7ERgNg== X-CSE-MsgGUID: DC/qNIEnQY+JBBT+RkoEAg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,211,1712646000"; d="scan'208";a="36805940" Received: from basicluh01.gar.corp.intel.com (HELO localhost.localdomain) ([10.223.131.46]) by fmviesa006.fm.intel.com with ESMTP; 03 Jun 2024 01:01:55 -0700 From: Melanie Lobo To: igt-dev@lists.freedesktop.org Cc: vidya.srinivas@intel.com, Melanie Lobo , Juha-Pekka Heikkila , Bhanuprakash Modem , Swati Sharma Subject: [PATCH 1/2] lib/intel_aux_pgtable: Library to add support for RGB16161616_64B format Date: Mon, 3 Jun 2024 13:43:39 +0530 Message-Id: <20240603081340.30723-2-melanie.lobo@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240603081340.30723-1-melanie.lobo@intel.com> References: <20231010134540.28485-1-melanie.lobo@intel.com> <20240603081340.30723-1-melanie.lobo@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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" MTL supports RGB16161616_64B FP16 format which is a binary floating-point computer number format that occupies 16 bits in computer memory. This was tested with kernel patch, https://patchwork.freedesktop.org/series/124957/ https://lore.kernel.org/all/20231201091133.23508-1-melanie.lobo@intel.com/ cc: Juha-Pekka Heikkila cc: Bhanuprakash Modem cc: Swati Sharma Signed-off-by: Melanie Lobo --- lib/intel_aux_pgtable.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/intel_aux_pgtable.c b/lib/intel_aux_pgtable.c index 3cbb0e26f35c..87df50e71bbd 100644 --- a/lib/intel_aux_pgtable.c +++ b/lib/intel_aux_pgtable.c @@ -22,6 +22,7 @@ #define AUX_FORMAT_AYUV 0x09 #define AUX_FORMAT_ARGB_8B 0x0A #define AUX_FORMAT_NV12_21 0x0F +#define AUX_FORMAT_RGBA16_FLOAT        0x1 struct pgtable_level_desc { int idx_shift; @@ -306,6 +307,10 @@ static uint64_t pgt_get_l1_flags(const struct intel_buf *buf, int surface_idx) entry.e.format = AUX_FORMAT_ARGB_8B; entry.e.depth = bpp_to_depth_val(32); break; + case 64: + entry.e.format = AUX_FORMAT_RGBA16_FLOAT; + entry.e.depth = bpp_to_depth_val(64); + break; default: igt_assert(0); } -- 2.17.1