]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Simplify i915_gem_obj_to_ggtt_view
authorTvrtko Ursulin <tvrtko.ursulin@intel.com>
Thu, 21 Apr 2016 12:04:44 +0000 (13:04 +0100)
committerTvrtko Ursulin <tvrtko.ursulin@intel.com>
Mon, 25 Apr 2016 11:34:34 +0000 (12:34 +0100)
commitcec7cb8a93f50b6f1514e54461f2ee954513fea3
treecdad47284618556a7e8cea9a61f039947ca32c91
parent3aa01c4fd51789a8ac8f5ea0efef636037a861cd
drm/i915: Simplify i915_gem_obj_to_ggtt_view

Can use vma->is_ggtt to simplify the check and also switch the
BUG_ON to GEM_BUG_ON which is more appropriate for this.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Dave Gordon <david.s.gordon@intel.com>
drivers/gpu/drm/i915/i915_gem.c