summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>2018-11-08 11:25:10 +0000
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>2018-11-08 18:29:56 +0000
commitcab148ca3ec904a94d0cd43476cf7e1f8663f906 (patch)
tree77b636afeafa4d9d0f80f826aeb0e2073ee26b7c /tests
parent3acf5c5b74ebf89c8b389b19d59f12c409e1dc52 (diff)
tests/i915/query: more accurate available/fused topology printout
Make availability of all elements more visible for debug purposes. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/i915/query.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/i915/query.c b/tests/i915/query.c
index 08aabf946..3e7fd1406 100644
--- a/tests/i915/query.c
+++ b/tests/i915/query.c
@@ -373,12 +373,20 @@ test_query_topology_matches_eu_total(int fd)
for (s = 0; s < topo_info->max_slices; s++) {
int ss;
- igt_debug("slice%i:\n", s);
+ igt_debug("slice%i: (%s)\n", s,
+ slice_available(topo_info, s) ? "available" : "fused");
+
+ if (!slice_available(topo_info, s))
+ continue;
for (ss = 0; ss < topo_info->max_subslices; ss++) {
int eu, n_subslice_eus = 0;
- igt_debug("\tsubslice: %i\n", ss);
+ igt_debug("\tsubslice%i: (%s)\n", ss,
+ subslice_available(topo_info, s, ss) ? "available" : "fused");
+
+ if (!subslice_available(topo_info, s, ss))
+ continue;
igt_debug("\t\teu_mask: 0b");
for (eu = 0; eu < topo_info->max_eus_per_subslice; eu++) {