Skip to content

Commit

Permalink
drm/i915: Reject NEEDS_GTT relocations with full ppgtt
Browse files Browse the repository at this point in the history
Doesn't make sense. Spotted while fixing an issue Chris
noticed in the same area.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
  • Loading branch information
Daniel Vetter committed Dec 18, 2013
1 parent bfca052 commit 2c9f8d5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions drivers/gpu/drm/i915/i915_gem_execbuffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ eb_lookup_vmas(struct eb_vmas *eb,
struct i915_vma *vma;
struct i915_address_space *bind_vm = vm;

if (exec[i].flags & EXEC_OBJECT_NEEDS_GTT &&
USES_FULL_PPGTT(vm->dev)) {
ret = -EINVAL;
goto out;
}

/* If we have secure dispatch, or the userspace assures us that
* they know what they're doing, use the GGTT VM.
*/
Expand Down

0 comments on commit 2c9f8d5

Please sign in to comment.