From: Jeevan B <jeevan.b@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: swati2.sharma@intel.com, rodrigo.vivi@intel.com,
Jeevan B <jeevan.b@intel.com>
Subject: [PATCH i-g-t] tests/intel/kms_pm_rpm: Update cursor_fb3 framebuffer creation format
Date: Thu, 5 Dec 2024 11:30:49 +0530 [thread overview]
Message-ID: <20241205060049.1236277-1-jeevan.b@intel.com> (raw)
Updated the cursor_fb3 framebuffer creation in the cursor subtest
function to use a supported tiling format, either X-tile or linear,
for supported platforms.
Signed-off-by: Jeevan B <jeevan.b@intel.com>
---
tests/intel/kms_pm_rpm.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/tests/intel/kms_pm_rpm.c b/tests/intel/kms_pm_rpm.c
index 990c50915..283911afb 100644
--- a/tests/intel/kms_pm_rpm.c
+++ b/tests/intel/kms_pm_rpm.c
@@ -1198,8 +1198,13 @@ static void cursor_subtest(bool dpms)
DRM_FORMAT_MOD_LINEAR, &cursor_fb1);
igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_ARGB8888,
DRM_FORMAT_MOD_LINEAR, &cursor_fb2);
- igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
- I915_FORMAT_MOD_X_TILED, &cursor_fb3);
+ if (igt_display_has_format_mod(&ms_data.display, DRM_FORMAT_XRGB8888,
+ I915_FORMAT_MOD_X_TILED))
+ igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
+ I915_FORMAT_MOD_X_TILED, &cursor_fb3);
+ else
+ igt_create_fb(drm_fd, 64, 64, DRM_FORMAT_XRGB8888,
+ DRM_FORMAT_MOD_LINEAR, &cursor_fb3);
fill_igt_fb(&cursor_fb1, 0xFF00FFFF);
fill_igt_fb(&cursor_fb2, 0xFF00FF00);
--
2.25.1
next reply other threads:[~2024-12-05 5:45 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-05 6:00 Jeevan B [this message]
2024-12-05 6:35 ` ✗ i915.CI.BAT: failure for tests/intel/kms_pm_rpm: Update cursor_fb3 framebuffer creation format (rev3) Patchwork
2024-12-05 6:39 ` ✓ Xe.CI.BAT: success " Patchwork
2024-12-05 9:20 ` ✗ Xe.CI.Full: failure " Patchwork
2024-12-05 11:35 ` [PATCH i-g-t] tests/intel/kms_pm_rpm: Update cursor_fb3 framebuffer creation format Juha-Pekka Heikkilä
-- strict thread matches above, loose matches on Subject: below --
2024-12-05 5:46 Jeevan B
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241205060049.1236277-1-jeevan.b@intel.com \
--to=jeevan.b@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=rodrigo.vivi@intel.com \
--cc=swati2.sharma@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox