diff options
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/drm/i915_drm.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h index ac3c6503ca27..b57985929553 100644 --- a/include/uapi/drm/i915_drm.h +++ b/include/uapi/drm/i915_drm.h | |||
| @@ -86,6 +86,22 @@ enum i915_mocs_table_index { | |||
| 86 | I915_MOCS_CACHED, | 86 | I915_MOCS_CACHED, |
| 87 | }; | 87 | }; |
| 88 | 88 | ||
| 89 | /* | ||
| 90 | * Different engines serve different roles, and there may be more than one | ||
| 91 | * engine serving each role. enum drm_i915_gem_engine_class provides a | ||
| 92 | * classification of the role of the engine, which may be used when requesting | ||
| 93 | * operations to be performed on a certain subset of engines, or for providing | ||
| 94 | * information about that group. | ||
| 95 | */ | ||
| 96 | enum drm_i915_gem_engine_class { | ||
| 97 | I915_ENGINE_CLASS_RENDER = 0, | ||
| 98 | I915_ENGINE_CLASS_COPY = 1, | ||
| 99 | I915_ENGINE_CLASS_VIDEO = 2, | ||
| 100 | I915_ENGINE_CLASS_VIDEO_ENHANCE = 3, | ||
| 101 | |||
| 102 | I915_ENGINE_CLASS_INVALID = -1 | ||
| 103 | }; | ||
| 104 | |||
| 89 | /* Each region is a minimum of 16k, and there are at most 255 of them. | 105 | /* Each region is a minimum of 16k, and there are at most 255 of them. |
| 90 | */ | 106 | */ |
| 91 | #define I915_NR_TEX_REGIONS 255 /* table size 2k - maximum due to use | 107 | #define I915_NR_TEX_REGIONS 255 /* table size 2k - maximum due to use |
| @@ -450,6 +466,27 @@ typedef struct drm_i915_irq_wait { | |||
| 450 | */ | 466 | */ |
| 451 | #define I915_PARAM_HAS_EXEC_FENCE_ARRAY 49 | 467 | #define I915_PARAM_HAS_EXEC_FENCE_ARRAY 49 |
| 452 | 468 | ||
| 469 | /* | ||
| 470 | * Query whether every context (both per-file default and user created) is | ||
| 471 | * isolated (insofar as HW supports). If this parameter is not true, then | ||
| 472 | * freshly created contexts may inherit values from an existing context, | ||
| 473 | * rather than default HW values. If true, it also ensures (insofar as HW | ||
| 474 | * supports) that all state set by this context will not leak to any other | ||
| 475 | * context. | ||
| 476 | * | ||
| 477 | * As not every engine across every gen support contexts, the returned | ||
| 478 | * value reports the support of context isolation for individual engines by | ||
| 479 | * returning a bitmask of each engine class set to true if that class supports | ||
| 480 | * isolation. | ||
| 481 | */ | ||
| 482 | #define I915_PARAM_HAS_CONTEXT_ISOLATION 50 | ||
| 483 | |||
| 484 | /* Frequency of the command streamer timestamps given by the *_TIMESTAMP | ||
| 485 | * registers. This used to be fixed per platform but from CNL onwards, this | ||
| 486 | * might vary depending on the parts. | ||
| 487 | */ | ||
| 488 | #define I915_PARAM_CS_TIMESTAMP_FREQUENCY 51 | ||
| 489 | |||
| 453 | typedef struct drm_i915_getparam { | 490 | typedef struct drm_i915_getparam { |
| 454 | __s32 param; | 491 | __s32 param; |
| 455 | /* | 492 | /* |
