]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/fbc: move the intel_fbc_can_choose() call out of the loop
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 11 Nov 2016 16:57:35 +0000 (14:57 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 14 Nov 2016 16:00:29 +0000 (14:00 -0200)
commit0d1fc197fb3ab17ec83044e4b7cb180d97e0dcc8
tree4ca73cf79cb4c3c6a24585f049ee72291f414055
parent50dd2b3649c19ad00b8c2c9e6245ede8a09dda40
drm/i915/fbc: move the intel_fbc_can_choose() call out of the loop

We can just call it earlier, so do it. The goal of the loop is to get
the plane's CRTC state, and we don't need it in order to call
intel_fbc_can_choose().

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1478883461-20201-2-git-send-email-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/intel_fbc.c