]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/uapi/drm/i915_drm.h
drm/i915: Define an engine class enum for the uABI
[mirror_ubuntu-bionic-kernel.git] / include / uapi / drm / i915_drm.h
index 5b910392e828d4300cfdfad83d099060fde1f343..b6308cb54c2f1084f3071dfbfe8f35efed328a72 100644 (file)
@@ -86,6 +86,22 @@ enum i915_mocs_table_index {
        I915_MOCS_CACHED,
 };
 
+/*
+ * Different engines serve different roles, and there may be more than one
+ * engine serving each role. enum drm_i915_gem_engine_class provides a
+ * classification of the role of the engine, which may be used when requesting
+ * operations to be performed on a certain subset of engines, or for providing
+ * information about that group.
+ */
+enum drm_i915_gem_engine_class {
+       I915_ENGINE_CLASS_RENDER        = 0,
+       I915_ENGINE_CLASS_COPY          = 1,
+       I915_ENGINE_CLASS_VIDEO         = 2,
+       I915_ENGINE_CLASS_VIDEO_ENHANCE = 3,
+
+       I915_ENGINE_CLASS_INVALID       = -1
+};
+
 /* Each region is a minimum of 16k, and there are at most 255 of them.
  */
 #define I915_NR_TEX_REGIONS 255        /* table size 2k - maximum due to use