drm/i915: Pre-validate the NEED_GTTS flag for execbuffer
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 10 Aug 2014 05:29:08 +0000 (06:29 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 11 Aug 2014 12:15:02 +0000 (14:15 +0200)
commitad19f10bc2a5964f1564639e60953de76b7e50f6
treead8abe76913882f6b6b46d4e36153425ddd6db81
parentda51a1e7e398129d9fddd4b26b8469145dd4fd08
drm/i915: Pre-validate the NEED_GTTS flag for execbuffer

We have an implementation requirement that precludes the user from
requesting a ggtt entry when the device is operating in ppgtt mode. Move
the current check from inside the execbuffer object collation to the
prevalidation phase.

v2: Roll both invalid flags checks into one

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_execbuffer.c