drm/i915: Add temporary ring->ctx backpointer
The execlist patches have a bit a convoluted and long history and due to that have the actual submission still misplaced deeply burried in the low-level ringbuffer handling code. This design goes back to the legacy ringbuffer code with its tricky lazy request and simple work submissiion using ring tail writes. For that reason they need a ring->ctx backpointer. The goal is to unburry that code and move it up into a level where the full execlist context is available so that we can ditch this backpointer. Until that's done make it really obvious that there's work still to be done. Cc: Oscar Mateo <oscar.mateo@intel.com> Cc: Thomas Daniel <thomas.daniel@intel.com> Acked-by: Thomas Daniel <thomas.daniel@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:

committed by
Daniel Vetter

parent
3a44873490
commit
582d67f0b1
@@ -1086,6 +1086,8 @@ int intel_lr_context_deferred_create(struct intel_context *ctx,
|
||||
}
|
||||
|
||||
ringbuf->ring = ring;
|
||||
ringbuf->FIXME_lrc_ctx = ctx;
|
||||
|
||||
ringbuf->size = 32 * PAGE_SIZE;
|
||||
ringbuf->effective_size = ringbuf->size;
|
||||
ringbuf->head = 0;
|
||||
|
Reference in New Issue
Block a user