]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/bdw: Add a context and an engine pointers to the ringbuffer
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 14:17:44 +0000 (16:17 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 14:18:17 +0000 (16:18 +0200)
commitb6f723e5a877560f3583987f584e6b5412b213c3
treeb515642289e52d294ff3d592eb08348aef0c1d4c
parentdcc39bf6f744df01341e239bc3c1777e076920c1
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>
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h