From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by gabe.freedesktop.org (Postfix) with ESMTPS id 71CCF10E4CF for ; Tue, 7 Nov 2023 08:41:51 +0000 (UTC) From: Melanie Lobo To: igt-dev@lists.freedesktop.org Date: Tue, 7 Nov 2023 14:26:41 +0530 Message-Id: <20231107085642.25010-1-melanie.lobo@intel.com> In-Reply-To: <20231010134540.28485-1-melanie.lobo@intel.com> References: <20231010134540.28485-1-melanie.lobo@intel.com> Subject: [igt-dev] [PATCH 1/2] lib/intel_aux_pgtable: Library to add support for FP16 compressed formats List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: MTL supports FP16 format which is a binary floating-point computer number format that occupies 16 bits in computer memory. In this test platform shall render compression in display engine to receive FP16 compressed formats. This was tested with kernel patch, https://patchwork.freedesktop.org/patch/563854 Test-with: 20231012062620.23886-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 7c79521344de..a612df407692 100644 --- a/lib/intel_aux_pgtable.c +++ b/lib/intel_aux_pgtable.c @@ -21,6 +21,7 @@ #define AUX_FORMAT_AYUV 0x09 #define AUX_FORMAT_ARGB_8B 0x0A #define AUX_FORMAT_NV12_21 0x0F +#define AUX_FORMAT_XRGB16161616_64B 0x10 struct pgtable_level_desc { int idx_shift; @@ -305,6 +306,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_XRGB16161616_64B; + entry.e.depth = bpp_to_depth_val(64); + break; default: igt_assert(0); } -- 2.17.1