[igt-dev] [PATCH i-g-t 2/2] lib/i915: Include the device name in the submission pretty-printer
Zbigniew Kempczyński
zbigniew.kempczynski at intel.com
Mon Nov 16 09:46:36 UTC 2020
On Fri, Nov 13, 2020 at 01:39:51PM +0000, Chris Wilson wrote:
> 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
Ok.
Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
--
Zbigniew
>
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev
More information about the igt-dev
mailing list