diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-19 06:19:32 -0400 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-10-21 14:08:39 -0400 |
commit | 549f7365820a212a1cfd0871d377b1ad0d1e5723 (patch) | |
tree | dbd39c10b32b35b762b083a358b7fc4c09783d5b /include/drm/i915_drm.h | |
parent | e36c1cd7292efcb8daca26cd6331481736544742 (diff) |
drm/i915: Enable SandyBridge blitter ring
Based on an original patch by Zhenyu Wang, this initializes the BLT ring for
SandyBridge and enables support for user execbuffers.
Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'include/drm/i915_drm.h')
-rw-r--r-- | include/drm/i915_drm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/drm/i915_drm.h b/include/drm/i915_drm.h index e41c74facb6a..8c641bed9bbd 100644 --- a/include/drm/i915_drm.h +++ b/include/drm/i915_drm.h | |||
@@ -286,6 +286,7 @@ typedef struct drm_i915_irq_wait { | |||
286 | #define I915_PARAM_HAS_PAGEFLIPPING 8 | 286 | #define I915_PARAM_HAS_PAGEFLIPPING 8 |
287 | #define I915_PARAM_HAS_EXECBUF2 9 | 287 | #define I915_PARAM_HAS_EXECBUF2 9 |
288 | #define I915_PARAM_HAS_BSD 10 | 288 | #define I915_PARAM_HAS_BSD 10 |
289 | #define I915_PARAM_HAS_BLT 11 | ||
289 | 290 | ||
290 | typedef struct drm_i915_getparam { | 291 | typedef struct drm_i915_getparam { |
291 | int param; | 292 | int param; |
@@ -627,8 +628,11 @@ struct drm_i915_gem_execbuffer2 { | |||
627 | __u32 num_cliprects; | 628 | __u32 num_cliprects; |
628 | /** This is a struct drm_clip_rect *cliprects */ | 629 | /** This is a struct drm_clip_rect *cliprects */ |
629 | __u64 cliprects_ptr; | 630 | __u64 cliprects_ptr; |
631 | #define I915_EXEC_RING_MASK (7<<0) | ||
632 | #define I915_EXEC_DEFAULT (0<<0) | ||
630 | #define I915_EXEC_RENDER (1<<0) | 633 | #define I915_EXEC_RENDER (1<<0) |
631 | #define I915_EXEC_BSD (1<<1) | 634 | #define I915_EXEC_BSD (2<<0) |
635 | #define I915_EXEC_BLT (3<<0) | ||
632 | __u64 flags; | 636 | __u64 flags; |
633 | __u64 rsvd1; | 637 | __u64 rsvd1; |
634 | __u64 rsvd2; | 638 | __u64 rsvd2; |