drm/i915: Tighten the checks for invalid relocation domains
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Dec 2012 11:49:06 +0000 (11:49 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 3 Dec 2012 19:11:51 +0000 (20:11 +0100)
commit2a2d548240ff5f5bd826640bdf8baa016ab6cec4
tree7de27b9637f0c1d7c5360c840fcdcac204579934
parent4239ca779dbe47a310a3106d9f4cd5458014bdb6
drm/i915: Tighten the checks for invalid relocation domains

Be specific for the GPU domains so that we can detect if userspace ever
passed in an invalid combination, as well as accurately reflect the
known GPU domains when printing state.

Fixes i-g-t/gem_exec_bad_domains

References: https://bugs.freedesktop.org/show_bug.cgi?id=57826
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h