drm/i915: Assert that the kernel_context is hw-id 0
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Jan 2017 11:31:31 +0000 (11:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 23 Jan 2017 11:53:32 +0000 (11:53 +0000)
commit5d12fcef4ef15d00ae3228cc1ed80d2d81bc2c06
tree5f1c7ffdb67e942d9dd468c82351dcd9231e59fb
parent2f1ac9cc68e0ca569405bd854979aa7eb787f774
drm/i915: Assert that the kernel_context is hw-id 0

For easy recognisability, we want the kernel context to have id 0 and
all user contexts to have non-zero ids.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170123113132.18665-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c