drm/i915/fbc: unconditionally update FBC during atomic commits
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 21 Jan 2016 20:07:17 +0000 (18:07 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 29 Jan 2016 20:10:54 +0000 (18:10 -0200)
commitfcf38d134983c1dbc3f426f6e562d93514fde1f1
tree11c89fef72455f5a27116f90d4e6d0874572ba63
parent261fe99ac26bde82f44163b0d7f67b9ccf562359
drm/i915/fbc: unconditionally update FBC during atomic commits

We unconditionally disable/update FBC even during the page flip
IOCTLs, and an unconditional disable/update at every atomic commit
touching the primary plane shouldn't impact PC state residency
noticeably. Besides, the code that checks for rotation is a good hint
that we may be forgetting something else, so let's leave all the
decisions to intel_fbc.c, making the code much safer.

Once we have the code to properly make FBC enable/update decisions
based on atomic states, with proper locking, then we'll be able to
evaluate whether it will be worth trying to optimize the cases where a
disable isn't needed.

v2: Upstream moved and now our patch needs to remove dev_priv.

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1453406837-10511-1-git-send-email-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/intel_display.c