public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] tests/i915/query: more accurate available/fused topology printout
@ 2018-11-08 11:25 Lionel Landwerlin
  2018-11-08 12:15 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Lionel Landwerlin @ 2018-11-08 11:25 UTC (permalink / raw)
  To: igt-dev; +Cc: tvrtko.ursulin

Make availability of all elements more visible for debug purposes.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
---
 tests/i915/query.c | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/tests/i915/query.c b/tests/i915/query.c
index 08aabf94..3e7fd140 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++) {
-- 
2.19.1

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-08 20:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-08 11:25 [igt-dev] [PATCH i-g-t] tests/i915/query: more accurate available/fused topology printout Lionel Landwerlin
2018-11-08 12:15 ` [igt-dev] ✗ Fi.CI.BAT: failure for " Patchwork
2018-11-08 13:00 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2018-11-08 15:37 ` [igt-dev] [PATCH i-g-t] " Tvrtko Ursulin
2018-11-08 20:59   ` Lionel Landwerlin
2018-11-08 20:22 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox