]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
drm/i915: Replace some open-coded i915_coherent_map_type()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 1 Oct 2018 19:44:44 +0000 (20:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 2 Oct 2018 11:53:44 +0000 (12:53 +0100)
commit89d5efcc311cca135de623e9e4a81267e7a9eaa8
tree445f83542524444caa508d18af42fa126a7dd798
parentb20815255693733d06af788ea0b9dcd6271c3841
drm/i915: Replace some open-coded i915_coherent_map_type()

A few callsites were deciding on using WC or WB maps based on
HAS_LLC(), so replace them with the equivalent helper function
i915_coherent_map_type().

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181001194447.29910-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/selftests/intel_hangcheck.c
drivers/gpu/drm/i915/selftests/intel_lrc.c