]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/i915: Also check view->type for a normal GGTT view
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Feb 2018 13:42:05 +0000 (13:42 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 20 Feb 2018 19:03:59 +0000 (19:03 +0000)
commitac87a6fd3631e43053d3dd228e96bbbf314566bf
tree25224323bcf04c41054a511cd8039bda9bf32038
parent9171433100c4d7f1c11b5f2483778b60a0c73f33
drm/i915: Also check view->type for a normal GGTT view

We cannot simply use !view as shorthand for all normal GGTT views as a
few callers will always populate a i915_ggtt_view struct and set the
type to NORMAL instead. So check for (!view || view->type == NORMAL)
inside i915_gem_object_ggtt_pin().

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180220134208.24988-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c