[igt-dev] [PATCH i-g-t 1/2] tests/i915_query: fix expected subslice count on hsw
Lionel Landwerlin
lionel.g.landwerlin at intel.com
Tue Mar 13 09:17:54 UTC 2018
Haswell's configuration are a bit different from the following Gens.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105476
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
tests/i915_query.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/tests/i915_query.c b/tests/i915_query.c
index bb0f0707..328c54bc 100644
--- a/tests/i915_query.c
+++ b/tests/i915_query.c
@@ -449,11 +449,17 @@ test_query_topology_known_pci_ids(int fd, int devid)
break;
case 2:
igt_assert_eq(n_slices, 1);
- igt_assert_eq(n_subslices, 3);
+ if (dev_info->is_haswell)
+ igt_assert_eq(n_subslices, 2);
+ else
+ igt_assert_eq(n_subslices, 3);
break;
case 3:
igt_assert_eq(n_slices, 2);
- igt_assert_eq(n_subslices, 2 * 3);
+ if (dev_info->is_haswell)
+ igt_assert_eq(n_subslices, 2 * 2);
+ else
+ igt_assert_eq(n_subslices, 2 * 3);
break;
case 4:
igt_assert_eq(n_slices, 3);
--
2.16.2
More information about the igt-dev
mailing list