From: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 4/4] tests/kms_getfb: Add meteorlake related ccs modifiers
Date: Tue, 16 May 2023 18:43:29 +0300 [thread overview]
Message-ID: <20230516154329.9002-5-juhapekka.heikkila@gmail.com> (raw)
In-Reply-To: <20230516154329.9002-1-juhapekka.heikkila@gmail.com>
Add meteorlake related ccs modifiers for getfb2-accept-ccs and
getfb-reject-ccs subtests to allow them to run without skipping.
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
---
tests/kms_getfb.c | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/tests/kms_getfb.c b/tests/kms_getfb.c
index 4adc7eee..f44f4255 100644
--- a/tests/kms_getfb.c
+++ b/tests/kms_getfb.c
@@ -100,10 +100,15 @@ static void get_ccs_fb(int fd, struct drm_mode_fb_cmd2 *ret)
size = add.pitches[0] * ALIGN(add.height, 8);
size = ALIGN(size, 4096);
} else if ((intel_display_ver(devid)) >= 12) {
- add.modifier[0] = I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS;
- add.modifier[1] = I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS;
+ add.modifier[0] = IS_METEORLAKE(devid) ?
+ I915_FORMAT_MOD_4_TILED_MTL_RC_CCS :
+ I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS;
- /* The main surface for TGL is 4x4 tiles aligned
+ add.modifier[1] = IS_METEORLAKE(devid) ?
+ I915_FORMAT_MOD_4_TILED_MTL_RC_CCS :
+ I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS;
+
+ /* The main surface for Gen12+ is 4x4 tiles aligned
* For 32bpp the pitch is 4*4*32 bytes i.e. 512 bytes
*/
add.pitches[0] = ALIGN(add.width * 4, 4 * 128);
@@ -138,7 +143,7 @@ static void get_ccs_fb(int fd, struct drm_mode_fb_cmd2 *ret)
add.handles[0] = gem_buffer_create_fb_obj(fd, size);
igt_require(add.handles[0] != 0);
- if (!HAS_FLATCCS(intel_get_drm_devid(fd)))
+ if (!HAS_FLATCCS(devid))
add.handles[1] = add.handles[0];
if (drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &add) == 0)
--
2.25.1
next prev parent reply other threads:[~2023-05-16 15:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-16 15:43 [igt-dev] [PATCH i-g-t 0/4] Add Meteorlake CCS support Juha-Pekka Heikkila
2023-05-16 15:43 ` [igt-dev] [PATCH i-g-t 1/4] drm/fourcc: Import drm_fourcc header from commit c7c12de893f8 ("drm/fourcc: define Intel Meteorlake related ccs modifiers") Juha-Pekka Heikkila
2023-05-22 12:07 ` Kahola, Mika
2023-05-16 15:43 ` [igt-dev] [PATCH i-g-t 2/4] lib/mtl: Add MTL related tile4 ccs modifiers handling Juha-Pekka Heikkila
2023-05-23 9:12 ` Kahola, Mika
2023-05-16 15:43 ` [igt-dev] [PATCH i-g-t 3/4] tests/i915/kms_ccs: enable mtl aux ccs tests Juha-Pekka Heikkila
2023-05-22 12:54 ` Kahola, Mika
2023-05-16 15:43 ` Juha-Pekka Heikkila [this message]
2023-05-22 12:56 ` [igt-dev] [PATCH i-g-t 4/4] tests/kms_getfb: Add meteorlake related ccs modifiers Kahola, Mika
2023-05-16 17:14 ` [igt-dev] ✓ Fi.CI.BAT: success for Add Meteorlake CCS support Patchwork
2023-05-17 1:12 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
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=20230516154329.9002-5-juhapekka.heikkila@gmail.com \
--to=juhapekka.heikkila@gmail.com \
--cc=igt-dev@lists.freedesktop.org \
/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