]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/vma: Move the bind_count vs pin_count assertion to a helper
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Jun 2018 09:41:07 +0000 (10:41 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 5 Jun 2018 14:16:07 +0000 (15:16 +0100)
commit83d317adfb4b27ec589b59548cf52e3b63a39fc9
tree5ff266b086d8f1c7dea845f1532511c53ac8e98a
parent744799850ef1cb053457a8a7652165e895ea26a0
drm/i915/vma: Move the bind_count vs pin_count assertion to a helper

To spare ourselves a long line later, refactor the repeated check of
bind_count vs pin_count to a helper.

v2: Fix up the commentary!

Suggested-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180605094107.31367-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_vma.c