Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v2] tests/kms_getfb: Skip getfb2-accept-ccs subtest on Xe2 platforms
@ 2024-07-05  4:45 Pranay Samala
  2024-07-05  5:39 ` ✓ CI.xeBAT: success for tests/kms_getfb: Skip getfb2-accept-ccs subtest on Xe2 platforms (rev3) Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Pranay Samala @ 2024-07-05  4:45 UTC (permalink / raw)
  To: igt-dev; +Cc: karthik.b.s, sameer.lattannavar, pranay.samala

The getfb2-accept-ccs subtest tests on ccs modifiers.
With Xe2 platforms we no more have the ccs modifiers.

Adding a check to verify the platform. If it is
Xe2 platform then test will skip, otherwise it
will execute further.

v2: modified the check as 
    intel_graphics_ver(devid) < IP_VER(20, 0) (Juha-pekka)

Signed-off-by: Pranay Samala <pranay.samala@intel.com>
---
 tests/kms_getfb.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_getfb.c b/tests/kms_getfb.c
index bb9679bc9..9cc783776 100644
--- a/tests/kms_getfb.c
+++ b/tests/kms_getfb.c
@@ -161,6 +161,9 @@ static void get_ccs_fb(int fd, struct drm_mode_fb_cmd2 *ret)
 	igt_require(has_addfb2_iface(fd));
 	devid = intel_get_drm_devid(fd);
 
+	igt_require_f(intel_graphics_ver(devid) < IP_VER(20, 0),
+		      "No ccs modifiers on Xe2\n");
+
 	if (HAS_FLATCCS(devid)) {
 		add.modifier[0] = I915_FORMAT_MOD_4_TILED_DG2_RC_CCS;
 		add.pitches[0] = ALIGN(add.width * 4, 4 * 512);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread
* [PATCH i-g-t v2] tests/kms_getfb: Skip getfb2-accept-ccs subtest on Xe2 platforms
@ 2024-06-26  9:59 Pranay Samala
  0 siblings, 0 replies; 8+ messages in thread
From: Pranay Samala @ 2024-06-26  9:59 UTC (permalink / raw)
  To: igt-dev; +Cc: karthik.b.s, sameer.lattannavar, pranay.samala

The getfb2-accept-ccs subtest tests on ccs modifiers.
With Xe2 platforms we no more have the ccs modifiers.

Adding a check to verify the platform. If it is
Xe2 platform then test will skip, otherwise it
will execute further.

v2: modified the check as 
    intel_graphics_ver(devid) < IP_VER(20, 0) (Juha-pekka)

Signed-off-by: Pranay Samala <pranay.samala@intel.com>
---
 tests/kms_getfb.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_getfb.c b/tests/kms_getfb.c
index bb9679bc9..9cc783776 100644
--- a/tests/kms_getfb.c
+++ b/tests/kms_getfb.c
@@ -161,6 +161,9 @@ static void get_ccs_fb(int fd, struct drm_mode_fb_cmd2 *ret)
 	igt_require(has_addfb2_iface(fd));
 	devid = intel_get_drm_devid(fd);
 
+	igt_require_f(intel_graphics_ver(devid) < IP_VER(20, 0),
+		      "No ccs modifiers on Xe2\n");
+
 	if (HAS_FLATCCS(devid)) {
 		add.modifier[0] = I915_FORMAT_MOD_4_TILED_DG2_RC_CCS;
 		add.pitches[0] = ALIGN(add.width * 4, 4 * 512);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-07-17  8:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-05  4:45 [PATCH i-g-t v2] tests/kms_getfb: Skip getfb2-accept-ccs subtest on Xe2 platforms Pranay Samala
2024-07-05  5:39 ` ✓ CI.xeBAT: success for tests/kms_getfb: Skip getfb2-accept-ccs subtest on Xe2 platforms (rev3) Patchwork
2024-07-05  5:46 ` ✓ Fi.CI.BAT: " Patchwork
2024-07-05  6:57 ` ✓ CI.xeFULL: " Patchwork
2024-07-05 19:24 ` ✗ Fi.CI.IGT: failure " Patchwork
2024-07-17  8:26   ` Samala, Pranay
2024-07-12  4:52 ` [PATCH i-g-t v2] tests/kms_getfb: Skip getfb2-accept-ccs subtest on Xe2 platforms Karthik B S
  -- strict thread matches above, loose matches on Subject: below --
2024-06-26  9:59 Pranay Samala

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox