From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2B80A10E747 for ; Thu, 13 Apr 2023 16:32:07 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Thu, 13 Apr 2023 21:57:26 +0530 Message-Id: <20230413162732.1155058-2-bhanuprakash.modem@intel.com> In-Reply-To: <20230413162732.1155058-1-bhanuprakash.modem@intel.com> References: <20230413162732.1155058-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t 1/7] lib/intel_bufops: Fix bops creation to support XE List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: As XE won't support tiling, fix the bops creation logic to support XE device. Signed-off-by: Bhanuprakash Modem --- lib/intel_bufops.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/lib/intel_bufops.c b/lib/intel_bufops.c index cdc7a1698b2..81f7b951813 100644 --- a/lib/intel_bufops.c +++ b/lib/intel_bufops.c @@ -1423,6 +1423,25 @@ static struct buf_ops *__buf_ops_create(int fd, bool check_idempotency) igt_debug("generation: %d, supported tiles: 0x%02x\n", bops->intel_gen, bops->supported_tiles); + /* No tiling support in XE. */ + if (is_xe_device(fd)) { + bops->supported_tiles = TILE_NONE; + bops->supported_hw_tiles = TILE_NONE; + + bops->linear_to_x = NULL; + bops->x_to_linear = NULL; + bops->linear_to_y = NULL; + bops->y_to_linear = NULL; + bops->linear_to_tile4 = NULL; + bops->tile4_to_linear = NULL; + bops->linear_to_yf = NULL; + bops->yf_to_linear = NULL; + bops->linear_to_ys = NULL; + bops->ys_to_linear = NULL; + + return bops; + } + /* * Warning! * -- 2.40.0