Mesa (main): intel/stub: Suppress warnings about DRM_I915_QUERY_PERF_CONFIG

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Dec 9 19:22:43 UTC 2021


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

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Mon Dec  6 12:23:55 2021 -0800

intel/stub: Suppress warnings about DRM_I915_QUERY_PERF_CONFIG

There's not a useful way to implement this, so just silence the warning
to cleanup shader-db runs.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14132>

---

 src/intel/tools/intel_noop_drm_shim.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/intel/tools/intel_noop_drm_shim.c b/src/intel/tools/intel_noop_drm_shim.c
index 9013c0df996..1174f50555b 100644
--- a/src/intel/tools/intel_noop_drm_shim.c
+++ b/src/intel/tools/intel_noop_drm_shim.c
@@ -303,6 +303,13 @@ i915_ioctl_query(int fd, unsigned long request, void *arg)
          break;
       }
 
+      case DRM_I915_QUERY_PERF_CONFIG:
+         /* This is known but not supported by the shim.  Handling this here
+          * suppresses some spurious warning messages in shader-db runs.
+          */
+         item->length = -EINVAL;
+         break;
+
       default:
          fprintf(stderr, "Unknown drm_i915_query_item id=%lli\n", item->query_id);
          item->length = -EINVAL;



More information about the mesa-commit mailing list