drm/i915: Generalize default context setup
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 6 Dec 2013 22:11:05 +0000 (14:11 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 14:27:56 +0000 (15:27 +0100)
commita45d0f6a7fbfcffeb76b8910ee166affcb4b8229
tree5fe9a57197f624f8ba5014f71d82221d7f1460e6
parent2fa48d8d4a0b09ec397a57a0f5717eddea8fb009
drm/i915: Generalize default context setup

The plan to to make every file descriptor have a default context. To
accommodate this, generalize out default context setup function so it
can be used at file open time.

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