drm/i915: Permit contexts on all rings
authorBen Widawsky <ben@bwidawsk.net>
Fri, 6 Dec 2013 22:11:01 +0000 (14:11 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 14:27:53 +0000 (15:27 +0100)
commit67e3d2979be1bf42d1818b2961c671eb31e0b4d9
treed4fcbfc9f684991ee307fddc8d767e1637412d13
parentca01b12b401a0e17a265a5ee18bf33e2cfbd32aa
drm/i915: Permit contexts on all rings

If we want to use contexts in more abstract terms (specifically with
PPGTT in mind), we need to allow them to be specified for any ring.

Since the upcoming patches will bring about the use of multiple address
spaces, and each ring needs to have an address space programmed (which
we intend to do at context switch time), we can no longer only use RCS.

With multiple rings having a last context, we must now unreference these
contexts.

NOTE: This commit requires an update to intel-gpu-tools to make it not
fail.

v2: Rebased with some logical conflicts.
Squashed in the context fini refcount patch

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_context.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c
This page took 0.026652 seconds and 5 git commands to generate.