From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 998B610E48B for ; Thu, 24 Aug 2023 05:49:17 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Thu, 24 Aug 2023 11:11:11 +0530 Message-Id: <20230824054123.820518-5-bhanuprakash.modem@intel.com> In-Reply-To: <20230824054123.820518-1-bhanuprakash.modem@intel.com> References: <20230824054123.820518-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t 04/16] tests/kms_addfb_basic: Add tiling support for XE List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kunal Joshi Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Remove the tiling restrictions in Xe specific tests V2: - Update Xe fast-feedback testlist & blocklist V3: - New patch for blocklist & BAT testlist changes Fixes: 8c3b02be3 (tests/kms_addfb_basic: Add XE support) Signed-off-by: Bhanuprakash Modem Reviewed-by: Kunal Joshi --- tests/kms_addfb_basic.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tests/kms_addfb_basic.c b/tests/kms_addfb_basic.c index f415300b6..f6c27a3d3 100644 --- a/tests/kms_addfb_basic.c +++ b/tests/kms_addfb_basic.c @@ -444,7 +444,7 @@ static void tiling_tests(int fd) igt_subtest_group { igt_fixture { - igt_require_i915(fd); + igt_require_intel(fd); tiled_x_bo = igt_create_bo_with_dimensions(fd, 1024, 1024, DRM_FORMAT_XRGB8888, I915_FORMAT_MOD_X_TILED, 1024*4, NULL, NULL, NULL); @@ -463,7 +463,8 @@ static void tiling_tests(int fd) f.pitches[0] = 1024*4; igt_describe("Check if addfb2 and rmfb call works for basic x-tiling test"); igt_subtest("basic-x-tiled-legacy") { - igt_require(gem_available_fences(fd) > 0); + if (is_i915_device(fd)) + igt_require(gem_available_fences(fd) > 0); f.handles[0] = tiled_x_bo; do_ioctl(fd, DRM_IOCTL_MODE_ADDFB2, &f); @@ -473,6 +474,7 @@ static void tiling_tests(int fd) igt_describe("Check if addfb2 call works for x and y tiling"); igt_subtest("framebuffer-vs-set-tiling") { + igt_require_i915(fd); igt_require(gem_available_fences(fd) > 0); f.handles[0] = gem_bo; @@ -487,6 +489,7 @@ static void tiling_tests(int fd) igt_describe("Test that addfb2 call fails correctly for pitches mismatch"); f.pitches[0] = 512*4; igt_subtest("tile-pitch-mismatch") { + igt_require_i915(fd); igt_require(gem_available_fences(fd) > 0); f.handles[0] = tiled_x_bo; @@ -496,8 +499,12 @@ static void tiling_tests(int fd) igt_describe("Test that addfb2 call fails correctly for basic y-tiling test"); f.pitches[0] = 1024*4; igt_subtest("basic-y-tiled-legacy") { - igt_require(!gem_has_lmem(fd)); - igt_require(gem_available_fences(fd) > 0); + if (is_i915_device(fd)) { + igt_require(!gem_has_lmem(fd)); + igt_require(gem_available_fences(fd) > 0); + } else { + igt_require(!xe_has_vram(fd)); + } f.handles[0] = tiled_y_bo; do_ioctl_err(fd, DRM_IOCTL_MODE_ADDFB2, &f, EINVAL); @@ -1118,7 +1125,7 @@ igt_main size_tests(fd); igt_fixture - igt_require_i915(fd); + igt_require_intel(fd); addfb25_ytile(fd); -- 2.40.0