]> git.ipfire.org Git - people/arne_f/kernel.git/commit - drivers/gpu/drm/i915/i915_gem_gtt.c
drm/i915: Move the NULL sg handling out from rotate_pages()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 15 Feb 2016 20:54:46 +0000 (22:54 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Mar 2016 10:48:09 +0000 (12:48 +0200)
commit11f20322e00fb48e53ac66d2889cec3341a8e814
tree5ec4011c99049e3a37bedfc963b4d5137a35f83a
parent1663b9d6a26a4d118e497b0a1604948b0fb0c86e
drm/i915: Move the NULL sg handling out from rotate_pages()

rotate_pages() checks to see if it got called with a NULL sg, and then
goes to extract it from sg->sgl. It always gets called with a NULL sg
for the first plane, so moving the initial 'sg=st->sgl' assignment out
into intel_rotate_fb_obj_pages() seems less special-casey.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1455569699-27905-9-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c