diff options
author | Daniel Vetter | 2014-08-11 16:17:44 +0200 |
---|---|---|
committer | Daniel Vetter | 2014-08-11 16:18:17 +0200 |
commit | 0c7dd53b84def4fbbba907bef3d32a5171b617a5 (patch) | |
tree | b515642289e52d294ff3d592eb08348aef0c1d4c /drivers/gpu/drm/i915/intel_lrc.c | |
parent | drm/i915/bdw: Allocate ringbuffers for Logical Ring Contexts (diff) | |
download | kernel-qcow2-linux-0c7dd53b84def4fbbba907bef3d32a5171b617a5.tar.gz kernel-qcow2-linux-0c7dd53b84def4fbbba907bef3d32a5171b617a5.tar.xz kernel-qcow2-linux-0c7dd53b84def4fbbba907bef3d32a5171b617a5.zip |
drm/i915/bdw: Add a context and an engine pointers to the ringbuffer
Any given ringbuffer is unequivocally tied to one context and one engine.
By setting the appropriate pointers to them, the ringbuffer struct holds
all the infromation you might need to submit a workload for processing,
Execlists style.
v2: Drop ring->ctx since that looks terribly ill-defined for legacy
ringbuffer submission.
Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> (v1)
Acked-by: Damien Lespiau <damien.lespiau@intel.com> (v2)
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_lrc.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_lrc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_lrc.c b/drivers/gpu/drm/i915/intel_lrc.c index 0c80bb1f5420..8f2d14da6228 100644 --- a/drivers/gpu/drm/i915/intel_lrc.c +++ b/drivers/gpu/drm/i915/intel_lrc.c @@ -134,6 +134,7 @@ int intel_lr_context_deferred_create(struct intel_context *ctx, return ret; } + ringbuf->ring = ring; ringbuf->size = 32 * PAGE_SIZE; ringbuf->effective_size = ringbuf->size; ringbuf->head = 0; |