OSDN Git Service

drm/i915: Match code to comment and enforce ppgtt for execlists
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 22 Sep 2018 14:18:03 +0000 (15:18 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 25 Sep 2018 11:15:03 +0000 (12:15 +0100)
commit4a3d3f6785bed372daaa4c57d9d90cad01da9d8e
tree746127d19fcde609959ed3e771a791940fa2c679
parent570b16b559beca0f6a01dfb8944d5abadc1cfb31
drm/i915: Match code to comment and enforce ppgtt for execlists

Our execlist dispatch code requires a ppGTT so make sure we enforce that
option in intel_sanitize_enable_ppgtt(). The comment already tries to
explain that execlists requires ppgtt, but was written when gen8 may
have also taken the legacy path; so rewrite the code to match the
comment by using HAS_EXECLISTS() feature instead of the gen.

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