aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
index 6dbb6f462007..714f3fdd57d2 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.h
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
@@ -99,13 +99,6 @@ struct intel_ringbuffer {
99 99
100 struct intel_engine_cs *ring; 100 struct intel_engine_cs *ring;
101 101
102 /*
103 * FIXME: This backpointer is an artifact of the history of how the
104 * execlist patches came into being. It will get removed once the basic
105 * code has landed.
106 */
107 struct intel_context *FIXME_lrc_ctx;
108
109 u32 head; 102 u32 head;
110 u32 tail; 103 u32 tail;
111 int space; 104 int space;
@@ -123,6 +116,8 @@ struct intel_ringbuffer {
123 u32 last_retired_head; 116 u32 last_retired_head;
124}; 117};
125 118
119struct intel_context;
120
126struct intel_engine_cs { 121struct intel_engine_cs {
127 const char *name; 122 const char *name;
128 enum intel_ring_id { 123 enum intel_ring_id {
@@ -239,11 +234,14 @@ struct intel_engine_cs {
239 struct list_head execlist_retired_req_list; 234 struct list_head execlist_retired_req_list;
240 u8 next_context_status_buffer; 235 u8 next_context_status_buffer;
241 u32 irq_keep_mask; /* bitmask for interrupts that should not be masked */ 236 u32 irq_keep_mask; /* bitmask for interrupts that should not be masked */
242 int (*emit_request)(struct intel_ringbuffer *ringbuf); 237 int (*emit_request)(struct intel_ringbuffer *ringbuf,
238 struct drm_i915_gem_request *request);
243 int (*emit_flush)(struct intel_ringbuffer *ringbuf, 239 int (*emit_flush)(struct intel_ringbuffer *ringbuf,
240 struct intel_context *ctx,
244 u32 invalidate_domains, 241 u32 invalidate_domains,
245 u32 flush_domains); 242 u32 flush_domains);
246 int (*emit_bb_start)(struct intel_ringbuffer *ringbuf, 243 int (*emit_bb_start)(struct intel_ringbuffer *ringbuf,
244 struct intel_context *ctx,
247 u64 offset, unsigned flags); 245 u64 offset, unsigned flags);
248 246
249 /** 247 /**