Mesa (main): intel/dev: printout timestamp period

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Oct 28 10:43:17 UTC 2021


Module: Mesa
Branch: main
Commit: 3dda80fcf62baa106f227392d45ea6853ef7d9e9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3dda80fcf62baa106f227392d45ea6853ef7d9e9

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Thu Oct 28 11:12:16 2021 +0300

intel/dev: printout timestamp period

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Antonio Caggiano <antonio.caggiano at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13571>

---

 src/intel/dev/intel_dev_info.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/intel/dev/intel_dev_info.c b/src/intel/dev/intel_dev_info.c
index 2c067319b7a..1d8cbefd262 100644
--- a/src/intel/dev/intel_dev_info.c
+++ b/src/intel/dev/intel_dev_info.c
@@ -110,7 +110,8 @@ main(int argc, char *argv[])
       fprintf(stdout, "   max GS  threads: %u\n", devinfo.max_gs_threads);
       fprintf(stdout, "   max WM  threads: %u\n", devinfo.max_wm_threads);
       fprintf(stdout, "   max CS  threads: %u\n", devinfo.max_cs_threads);
-      fprintf(stdout, "   timestamp frequency: %" PRIu64 "\n", devinfo.timestamp_frequency);
+      fprintf(stdout, "   timestamp frequency: %" PRIu64 " / %.4f ns\n",
+              devinfo.timestamp_frequency, 1000000000.0 / devinfo.timestamp_frequency);
    }
 
    return EXIT_SUCCESS;



More information about the mesa-commit mailing list