From: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Subject: [igt-dev] [PATCH i-g-t] tests/addfb: Switch to Y tiling for "bo-too-small-due-to-tiling" test
Date: Wed, 25 Sep 2019 22:45:03 -0700 [thread overview]
Message-ID: <20190926054503.28999-1-dhinakaran.pandiyan@intel.com> (raw)
The test kms_addfb_basic/bo-too-small-due-to-tiling creates an X tiled
buffer that's smaller than what's needed to support rotation.
Correspondingly, the driver assumes all non-linear buffers can support
90/270 rotation and rejects the smaller X tiled buffer. However, only Y/Yf
can support 90/270 rotation, which means the driver should not be
expecting a buffer than what's needed for X tiled buffers. Fix this
negative test case by switching to Y tiling.
Cc: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
---
tests/kms_addfb_basic.c | 11 +++++++++--
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git a/tests/kms_addfb_basic.c b/tests/kms_addfb_basic.c
index 666e7165..61067ee0 100644
--- a/tests/kms_addfb_basic.c
+++ b/tests/kms_addfb_basic.c
@@ -449,8 +449,15 @@ static void size_tests(int fd)
}
igt_subtest("bo-too-small-due-to-tiling") {
- igt_require_intel(fd);
- gem_set_tiling(fd, gem_bo_small, I915_TILING_X, 1024*4);
+ int gen;
+
+ igt_require_fb_modifiers(fd);
+ gen = intel_gen(intel_get_drm_devid(fd));
+ igt_require(gen >= 9);
+
+ gem_set_tiling(fd, gem_bo_small, I915_TILING_Y, 1024*4);
+ f.modifier[0] = LOCAL_I915_FORMAT_MOD_Y_TILED;
+ f.flags = LOCAL_DRM_MODE_FB_MODIFIERS;
igt_assert(drmIoctl(fd, DRM_IOCTL_MODE_ADDFB2, &f) == -1 &&
errno == EINVAL);
}
--
2.17.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next reply other threads:[~2019-09-26 5:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-26 5:45 Dhinakaran Pandiyan [this message]
2019-09-26 6:09 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/addfb: Switch to Y tiling for "bo-too-small-due-to-tiling" test Patchwork
2019-09-27 2:48 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2019-09-27 17:19 ` [igt-dev] [PATCH i-g-t] " Ville Syrjälä
2019-10-03 21:24 ` Dhinakaran Pandiyan
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=20190926054503.28999-1-dhinakaran.pandiyan@intel.com \
--to=dhinakaran.pandiyan@intel.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