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

Author: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Date:   Thu Mar 16 11:23:56 2023 +0200

intel/devinfo: printout URB entries

Signed-off-by: Lionel Landwerlin <lionel.g.landwer...@intel.com>
Reviewed-by: Sagar Ghuge <sagar.gh...@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21949>

---

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

diff --git a/src/intel/dev/intel_dev_info.c b/src/intel/dev/intel_dev_info.c
index 4ca1f22b9e5..1ba91d83ca4 100644
--- a/src/intel/dev/intel_dev_info.c
+++ b/src/intel/dev/intel_dev_info.c
@@ -94,7 +94,6 @@ print_base_devinfo(const struct intel_device_info *devinfo)
 
    fprintf(stdout, "   LLC: %u\n", devinfo->has_llc);
    fprintf(stdout, "   threads per EU: %u\n", devinfo->num_thread_per_eu);
-   fprintf(stdout, "   URB size: %u\n", devinfo->urb.size);
    fprintf(stdout, "   L3 banks: %u\n", devinfo->l3_banks);
    fprintf(stdout, "   max VS  threads: %u\n", devinfo->max_vs_threads);
    fprintf(stdout, "   max TCS threads: %u\n", devinfo->max_tcs_threads);
@@ -105,6 +104,16 @@ print_base_devinfo(const struct intel_device_info *devinfo)
    fprintf(stdout, "   timestamp frequency: %" PRIu64 " / %.4f ns\n",
            devinfo->timestamp_frequency, 1000000000.0 / 
devinfo->timestamp_frequency);
 
+   fprintf(stdout, "   URB size: %u\n", devinfo->urb.size);
+   static const char *stage_names[4] = {
+      "VS", "HS", "DS", "GS",
+   };
+   for (unsigned s = 0; s < ARRAY_SIZE(devinfo->urb.min_entries); s++) {
+      fprintf(stderr, "      URB.entries[%s] = [%4u, %4u]\n",
+              stage_names[s],
+              devinfo->urb.min_entries[s],
+              devinfo->urb.max_entries[s]);
+   }
 }
 
 static void

Reply via email to