return count;
}
+
+const char *
+intel_engines_class_to_string(enum intel_engine_class engine_class)
+{
+ switch (engine_class) {
+ case INTEL_ENGINE_CLASS_RENDER:
+ return "render";
+ case INTEL_ENGINE_CLASS_COPY:
+ return "copy";
+ case INTEL_ENGINE_CLASS_VIDEO:
+ return "video";
+ case INTEL_ENGINE_CLASS_VIDEO_ENHANCE:
+ return "video-enh";
+ case INTEL_ENGINE_CLASS_COMPUTE:
+ return "compute";
+ default:
+ return "unknown";
+ }
+}
struct intel_query_engine_info *intel_engine_get_info(int fd);
int intel_engines_count(const struct intel_query_engine_info *info,
enum intel_engine_class engine_class);
+const char *intel_engines_class_to_string(enum intel_engine_class engine_class);
return intel_device_info_timebase_scale(device->info, ts[idx]);
}
-static const char *
-queue_family_to_name(const struct anv_queue_family *family)
-{
- switch (family->engine_class) {
- case INTEL_ENGINE_CLASS_RENDER:
- return "render";
- case INTEL_ENGINE_CLASS_COPY:
- return "copy";
- case INTEL_ENGINE_CLASS_VIDEO:
- return "video";
- case INTEL_ENGINE_CLASS_VIDEO_ENHANCE:
- return "video-enh";
- default:
- return "unknown";
- }
-}
-
void
anv_device_utrace_init(struct anv_device *device)
{
queue->ds =
intel_ds_device_add_queue(&device->ds, "%s%u",
- queue_family_to_name(queue->family),
+ intel_engines_class_to_string(queue->family->engine_class),
queue->index_in_family);
}
}
return intel_device_info_timebase_scale(device->info, ts[idx]);
}
-static const char *
-queue_family_to_name(const struct anv_queue_family *family)
-{
- switch (family->engine_class) {
- case INTEL_ENGINE_CLASS_RENDER:
- return "render";
- case INTEL_ENGINE_CLASS_COPY:
- return "copy";
- case INTEL_ENGINE_CLASS_VIDEO:
- return "video";
- case INTEL_ENGINE_CLASS_VIDEO_ENHANCE:
- return "video-enh";
- default:
- return "unknown";
- }
-}
-
void
anv_device_utrace_init(struct anv_device *device)
{
queue->ds =
intel_ds_device_add_queue(&device->ds, "%s%u",
- queue_family_to_name(queue->family),
+ intel_engines_class_to_string(queue->family->engine_class),
queue->index_in_family);
}
}