intel/stub: Suppress warnings about DRM_I915_QUERY_PERF_CONFIG
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 6 Dec 2021 20:23:55 +0000 (12:23 -0800)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 9 Dec 2021 18:57:48 +0000 (10:57 -0800)
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@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14132>

src/intel/tools/intel_noop_drm_shim.c

index 9013c0d..1174f50 100644 (file)
@@ -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;