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 65E8EC10F1A for ; Thu, 9 May 2024 05:34:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E7E2910E1B6; Thu, 9 May 2024 05:34:17 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="V0XHaYuE"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) by gabe.freedesktop.org (Postfix) with ESMTPS id 51CC410E1B6 for ; Thu, 9 May 2024 05:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1715232857; x=1746768857; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Nv9w8NPLhnmNRhgwpTufWeQpyI+mHRVd+13o1C3UOyI=; b=V0XHaYuEpBAVSLSBPIEuwPzClNTOT5AyOZ03tN7r/DJlUNPAEoIdDQUE S5RO6IfGArf1RShWf12SffkS+OITJGGrNPSo5N412Q5y27z0HPMjTn2zM 8X3VxclNGRgYSEtp359y9BI69LEsM5LTgzk6Qkb0779hQ9FkDtpC7Z6ks OmSFvkXJkKcpJedBlm/d0/F/8QIKGwk3wk8+gTLEip47I5ZUQ6dMZqNfh eggubD5RzVhH1OhykGq2klRDmwiz4sraTCNzrG/MvnyBP0LO9D3n3wqyl fUNlYd25iLqXYgHOCueL5IMyDGkpAAJDe4HyfPBnnBH1tAbKDA7wLH66V g==; X-CSE-ConnectionGUID: KHmSZsGZT6WFkfwC1f3lrg== X-CSE-MsgGUID: YXme2b67TCWY82jyrovyaw== X-IronPort-AV: E=McAfee;i="6600,9927,11067"; a="11000868" X-IronPort-AV: E=Sophos;i="6.08,146,1712646000"; d="scan'208";a="11000868" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2024 22:34:17 -0700 X-CSE-ConnectionGUID: Z/CrY+0FRl275h2I1gYDiw== X-CSE-MsgGUID: ZWruZo7bQ9qE3PldeTBK2Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,146,1712646000"; d="scan'208";a="29654421" Received: from unknown (HELO localhost) ([10.245.246.122]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2024 22:34:15 -0700 From: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= To: igt-dev@lists.freedesktop.org Cc: =?UTF-8?q?Zbigniew=20Kempczy=C5=84ski?= , Karolina Stolarek Subject: [PATCH i-g-t v5 02/11] lib/intel_blt: Rename confusing fb tile to i915 tile Date: Thu, 9 May 2024 07:33:50 +0200 Message-Id: <20240509053359.449885-3-zbigniew.kempczynski@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240509053359.449885-1-zbigniew.kempczynski@intel.com> References: <20240509053359.449885-1-zbigniew.kempczynski@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" Fb tile is defacto drm modifier, thus blt_tile_to_fb_tile() name is confusing as it converts to I915_TILING*, not drm modifier. Lets rename it. Signed-off-by: Zbigniew KempczyƄski Reviewed-by: Karolina Stolarek --- lib/intel_blt.c | 4 ++-- lib/intel_blt.h | 2 +- tests/intel/xe_render_copy.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/intel_blt.c b/lib/intel_blt.c index 4da5cc855e..5a281036c4 100644 --- a/lib/intel_blt.c +++ b/lib/intel_blt.c @@ -536,14 +536,14 @@ static int __block_tiling(enum blt_tiling_type tiling) } /** - * blt_tile_to_fb_tile: + * blt_tile_to_i915_tile: * @tiling: tiling id * * Returns: * id of tiling introduced in i915 like I915_TILING_* used for example * in render-copy code. */ -int blt_tile_to_fb_tile(enum blt_tiling_type tiling) +int blt_tile_to_i915_tile(enum blt_tiling_type tiling) { switch (tiling) { case T_LINEAR: return I915_TILING_NONE; diff --git a/lib/intel_blt.h b/lib/intel_blt.h index cc59666862..fcfce69bee 100644 --- a/lib/intel_blt.h +++ b/lib/intel_blt.h @@ -213,7 +213,7 @@ bool blt_platform_has_flat_ccs_enabled(int fd); bool blt_uses_extended_block_copy(int fd); const char *blt_tiling_name(enum blt_tiling_type tiling); -int blt_tile_to_fb_tile(enum blt_tiling_type tiling); +int blt_tile_to_i915_tile(enum blt_tiling_type tiling); uint32_t blt_get_min_stride(uint32_t width, uint32_t bpp, enum blt_tiling_type tiling); diff --git a/tests/intel/xe_render_copy.c b/tests/intel/xe_render_copy.c index 4f98cb7dfa..ef75c4ce6d 100644 --- a/tests/intel/xe_render_copy.c +++ b/tests/intel/xe_render_copy.c @@ -407,7 +407,7 @@ igt_main_args("dpiW:H:", NULL, help_str, opt_handler, NULL) continue; tiling_name = blt_tiling_name(tiling); - tiling = blt_tile_to_fb_tile(tiling); + tiling = blt_tile_to_i915_tile(tiling); igt_dynamic_f("render-%s-%ux%u", tiling_name, surfwidth, surfheight) render(bops, tiling, surfwidth, surfheight, id); } -- 2.34.1