X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;ds=sidebyside;f=include%2Fuapi%2Fdrm%2Fi915_drm.h;h=b6308cb54c2f1084f3071dfbfe8f35efed328a72;hb=3fdb06ea5a3e8915f1e1c04e6c47984921d41c99;hp=5b910392e828d4300cfdfad83d099060fde1f343;hpb=3a988f8abee6232e6260fe129b1f3221921ce70a;p=mirror_ubuntu-bionic-kernel.git diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h index 5b910392e828..b6308cb54c2f 100644 --- a/include/uapi/drm/i915_drm.h +++ b/include/uapi/drm/i915_drm.h @@ -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