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:16:52 +0530 [thread overview]
Message-ID: <20241205054652.1234964-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..af8976ad5 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:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-05 5:46 Jeevan B [this message]
2024-12-05 6:21 ` ✗ i915.CI.BAT: failure for tests/intel/kms_pm_rpm: Update cursor_fb3 framebuffer creation format (rev2) Patchwork
2024-12-05 6:23 ` ✓ Xe.CI.BAT: success " Patchwork
2024-12-05 8:42 ` ✗ Xe.CI.Full: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2024-12-05 6:00 [PATCH i-g-t] tests/intel/kms_pm_rpm: Update cursor_fb3 framebuffer creation format Jeevan B
2024-12-05 11:35 ` Juha-Pekka Heikkilä
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=20241205054652.1234964-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.