From e2ee529bb96320da0968ae52d318883106f3fa55 Mon Sep 17 00:00:00 2001 From: Michał Winiarski Date: Wed, 18 Oct 2017 10:02:12 +0200 Subject: lib/i915: Move submission related helpers to lib/i915/gem_submission MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Since I accidentally broke the build for some, by putting the pretty printer for submission inside ifdef HAVE_PROCPS, it's time to move the whole thing into lib/i915 while fixing this mistake. Let's also rename the pretty printer and add a doc to it as well as the section. Fixes: f6dfe556659f ("lib: Extract helpers for determining submission method") Signed-off-by: Michał Winiarski Cc: Arkadiusz Hiler Cc: Chris Wilson Reviewed-by: Chris Wilson --- lib/igt_aux.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'lib/igt_aux.c') diff --git a/lib/igt_aux.c b/lib/igt_aux.c index c1082143..ee53559c 100644 --- a/lib/igt_aux.c +++ b/lib/igt_aux.c @@ -1493,24 +1493,6 @@ igt_show_stat(proc_t *info, int *state, const char *fn) ++*state; } -void gem_show_submission_method(int fd) -{ - const unsigned flags = gem_submission_method(fd); - - if (flags & GEM_SUBMISSION_GUC) { - igt_info("Using GuC submission\n"); - return; - } - - if (flags & GEM_SUBMISSION_EXECLISTS) { - igt_info("Using Execlists submission\n"); - return; - } - - igt_info("Using Legacy submission%s\n", - flags & GEM_SUBMISSION_SEMAPHORES ? ", with semaphores" : ""); -} - static void __igt_lsof_fds(proc_t *proc_info, int *state, char *proc_path, const char *dir) { -- cgit v1.2.3