]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0012d790a7ab10941f506076b9b88dc712537f57
treead8abe76913882f6b6b46d4e36153425ddd6db81
parentc7a8dbc8e258036aba3ab01a5650a911c977f50e
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