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 A87E0C67861 for ; Fri, 5 Apr 2024 10:15:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0D8B3113AB7; Fri, 5 Apr 2024 10:15:51 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="cwR+hBR0"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) by gabe.freedesktop.org (Postfix) with ESMTPS id 693BA113AB7 for ; Fri, 5 Apr 2024 10:15:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1712312149; x=1743848149; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=UmBfRZnPXByxPvUso8Bvzk9BX8/9xWU5QuQiHwvC2NA=; b=cwR+hBR0d+KKClOL+ycuekdvCGjJyksW0xf5F3nap7C9z7nTh72rbwSJ LgjCkGOchXe18dAO4Je1B/mN1SaDnDoUiRWY/MEOr+PqIqR/P8S6qBG0j FYzIiiYYL3JFrPM+v3Wd3tjZcAd0zFdh6rsKevJK2lpQjpfpVTN9fnfkq utKRUqFKolzmCDGpq/6NEVHjBQCLC+Kzg6OVEuVkw7o8GEUhKcxQxcwBs zsKAa1PUyGsdY6UqJlLF6i/q1EhpH/buyLnj2rnnPW2yar+DPhWBa706W YWku+6LsMcxbe+psT/qCZxt897LIBTzNcOxpjt4rJQ2aH7eicEyTLyMxn A==; X-CSE-ConnectionGUID: n+aEkmsbS4+z5hmYtiB+7g== X-CSE-MsgGUID: 5AZRaiufRWWatXXThfm+uQ== X-IronPort-AV: E=McAfee;i="6600,9927,11034"; a="25141743" X-IronPort-AV: E=Sophos;i="6.07,181,1708416000"; d="scan'208";a="25141743" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2024 03:15:48 -0700 X-CSE-ConnectionGUID: LerrbnD8QKONmF+2xyTryQ== X-CSE-MsgGUID: OieO/XMpRhOGj1reKwl7dg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,181,1708416000"; d="scan'208";a="18984822" Received: from basicluh01.gar.corp.intel.com (HELO localhost.localdomain) ([10.223.131.46]) by orviesa010.jf.intel.com with ESMTP; 05 Apr 2024 03:15:45 -0700 From: Melanie Lobo To: igt-dev@lists.freedesktop.org Cc: juha-pekka.heikkila@intel.com, vidya.srinivas@intel.com, swati2.sharma@intel.com, bhanuprakash.modem@intel.com, Melanie Lobo , Juha-Pekka Heikkila Subject: [PATCH 1/2] lib/intel_aux_pgtable: Library to add support for FP16 compressed formats Date: Fri, 5 Apr 2024 15:56:21 +0530 Message-Id: <20240405102622.11666-2-melanie.lobo@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240405102622.11666-1-melanie.lobo@intel.com> References: <20231010134540.28485-1-melanie.lobo@intel.com> <20240405102622.11666-1-melanie.lobo@intel.com> 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 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 3cbb0e26f35c..1741c41af9a9 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_XRGB16161616_64B 0x10 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_XRGB16161616_64B; + entry.e.depth = bpp_to_depth_val(64); + break; default: igt_assert(0); } -- 2.17.1