[PATCH i-g-t 8/8] wip: fix test list on systems without i9152
José Roberto de Souza
jose.souza at intel.com
Mon Mar 23 22:37:14 UTC 2020
---
tests/kms_frontbuffer_tracking.c | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c
index 267aa631..f7733da8 100644
--- a/tests/kms_frontbuffer_tracking.c
+++ b/tests/kms_frontbuffer_tracking.c
@@ -3534,16 +3534,9 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
for (t.tiling = TILING_LINEAR; t.tiling < TILING_COUNT;
t.tiling++) {
- int devid = intel_get_drm_devid(drm.fd);
-
if (t.tiling == TILING_X)
continue;
- /* Tiling Y is only supported on GEN9+ */
- if (!AT_LEAST_GEN(devid, 9) &&
- t.tiling == TILING_Y)
- continue;
-
igt_describe("Test the tiling formats, if the "
"tiling format supports FBC do"
"the basic drawing test if not "
@@ -3553,6 +3546,12 @@ igt_main_args("", long_options, help_str, opt_handler, NULL)
feature_str(t.feature),
tiling_str(t.tiling)) {
+ /* Tiling Y is only supported on GEN9+ */
+ if (t.tiling == TILING_Y) {
+ int devid = intel_get_drm_devid(drm.fd);
+ igt_require(AT_LEAST_GEN(devid, 9));
+ }
+
if (tiling_is_valid(t.feature, t.tiling))
draw_subtest(&t);
else
--
2.25.2
More information about the Intel-gfx-trybot
mailing list