summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-09-06 18:14:35 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-09-06 18:15:52 +0100
commitac3d06094a635bfeb0c6d6752f7f7bfbc21ecf2a (patch)
tree60ad6c8f681885a78c3f9763f466ca0c77ccaf06
parent5eeb1f34d4bd16ef22e9252e876dd93c28c73b3c (diff)
downloadintel-gpu-tools-ac3d06094a635bfeb0c6d6752f7f7bfbc21ecf2a.tar.gz
intel-gpu-tools-ac3d06094a635bfeb0c6d6752f7f7bfbc21ecf2a.tar.bz2
intel-gpu-tools-ac3d06094a635bfeb0c6d6752f7f7bfbc21ecf2a.zip
igt/kms_universal_plane: Only test existing planes
Only attempt to test the number of planes that exist on the device so as not to trigger spurious failures. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=82233 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--tests/kms_universal_plane.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/kms_universal_plane.c b/tests/kms_universal_plane.c
index 2e67e242..95940718 100644
--- a/tests/kms_universal_plane.c
+++ b/tests/kms_universal_plane.c
@@ -555,6 +555,7 @@ static data_t data;
igt_main
{
+ int num_pipes;
igt_skip_on_simulation();
@@ -569,7 +570,8 @@ igt_main
igt_require(data.display.has_universal_planes);
}
- for (int pipe = 0; pipe < 3; pipe++)
+ num_pipes = igt_display_get_n_pipes(&data.display);
+ for (int pipe = 0; pipe < num_pipes; pipe++)
run_tests_for_pipe(&data, pipe);
igt_fixture {