drm/i915: Determine uses-full-ppgtt from context for execbuf
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 1 Sep 2018 09:24:51 +0000 (10:24 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 3 Sep 2018 09:08:53 +0000 (10:08 +0100)
commit4f2c7337af638bd73fd1f247f84a85521a34b74c
tree5f6f284b1b006f5100b2b6dd99cea3d7a1401b3d
parent48e905048f39ae97bd08dbbbc78a848d1d555d80
drm/i915: Determine uses-full-ppgtt from context for execbuf

Rather than inspect the global module parameter for whether full-ppgtt
maybe enabled, we can inspect the context directly as to whether it has
its own vm.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Bob Paauwe <bob.j.paauwe@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180901092451.7233-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_execbuffer.c