aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'include/drm')
-rw-r--r--include/drm/i915_drm.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h
index 19da2c04..98e15978 100644
--- a/include/drm/i915_drm.h
+++ b/include/drm/i915_drm.h
@@ -279,6 +279,8 @@ typedef struct drm_i915_irq_wait {
279#define I915_PARAM_HAS_BSD 10 279#define I915_PARAM_HAS_BSD 10
280#define I915_PARAM_HAS_BLT 11 280#define I915_PARAM_HAS_BLT 11
281#define I915_PARAM_HAS_RELAXED_FENCING 12 281#define I915_PARAM_HAS_RELAXED_FENCING 12
282#define I915_PARAM_HAS_COHERENT_RINGS 13
283#define I915_PARAM_HAS_EXEC_CONSTANTS 14
282 284
283typedef struct drm_i915_getparam { 285typedef struct drm_i915_getparam {
284 int param; 286 int param;
@@ -625,6 +627,17 @@ struct drm_i915_gem_execbuffer2 {
625#define I915_EXEC_RENDER (1<<0) 627#define I915_EXEC_RENDER (1<<0)
626#define I915_EXEC_BSD (2<<0) 628#define I915_EXEC_BSD (2<<0)
627#define I915_EXEC_BLT (3<<0) 629#define I915_EXEC_BLT (3<<0)
630
631/* Used for switching the constants addressing mode on gen4+ RENDER ring.
632 * Gen6+ only supports relative addressing to dynamic state (default) and
633 * absolute addressing.
634 *
635 * These flags are ignored for the BSD and BLT rings.
636 */
637#define I915_EXEC_CONSTANTS_MASK (3<<6)
638#define I915_EXEC_CONSTANTS_REL_GENERAL (0<<6) /* default */
639#define I915_EXEC_CONSTANTS_ABSOLUTE (1<<6)
640#define I915_EXEC_CONSTANTS_REL_SURFACE (2<<6) /* gen4/5 only */
628 __u64 flags; 641 __u64 flags;
629 __u64 rsvd1; 642 __u64 rsvd1;
630 __u64 rsvd2; 643 __u64 rsvd2;