drm/i915/gtt: Avoid calling non-existent allocate_va_range
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jun 2018 09:35:49 +0000 (10:35 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 1 Jun 2018 13:53:21 +0000 (14:53 +0100)
commit37800ca8037adeeb1ccd23dc15f6452b395e3101
treeedf36ff3ba0087cf7576a277ac77197df277703f
parente312b689a92d82d2b67f8b58b307fe5b79019d60
drm/i915/gtt: Avoid calling non-existent allocate_va_range

On hsw and older, we do not need to allocate the ppgtt on the fly and so
ppgtt->allocate_va_range() is NULL. Fixup ppgtt_bind_vma not to call it,
in that case!

v2: PIN_UPDATE still exists.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180601093554.13083-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180601093554.13083-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c