[igt-dev] [PATCH i-g-t 2/2] lib/i915: Include the device name in the submission pretty-printer

Chris Wilson chris at chris-wilson.co.uk
Fri Nov 13 13:39:51 UTC 2020


For tests that care deeply about the submission method, also mention
what platform the test is being run on.

Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
 lib/i915/gem_submission.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/i915/gem_submission.c b/lib/i915/gem_submission.c
index 2c17d93ae..c8980dcee 100644
--- a/lib/i915/gem_submission.c
+++ b/lib/i915/gem_submission.c
@@ -111,6 +111,11 @@ out:
 void gem_submission_print_method(int fd)
 {
 	const unsigned flags = gem_submission_method(fd);
+	const struct intel_device_info *info;
+
+	info = intel_get_device_info(intel_get_drm_devid(fd));
+	if (info)
+		igt_info("Running on %s\n", info->codename);
 
 	if (flags & GEM_SUBMISSION_GUC) {
 		igt_info("Using GuC submission\n");
-- 
2.29.2



More information about the igt-dev mailing list