]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Eliminate superfluous i915_ggtt_view_rotated
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 14 Jan 2017 00:28:26 +0000 (00:28 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sat, 14 Jan 2017 16:18:35 +0000 (16:18 +0000)
commit8383fd794aadde29c3ba41ad670e5656ee249d22
tree14863a4ca98367524272419563ab8195582a54aa
parentf6d2fdd886d6cdc45c2521a9c248a6d0aa19cedd
drm/i915: Eliminate superfluous i915_ggtt_view_rotated

It is only being used to clear a struct and set the type, after which it
is overwritten. Since we no longer check the unset bits of the union,
skipping the clear is permissible.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170114002827.31315-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/intel_display.c