drm/i915/fbc: don't store/check a pointer to the FB
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Mon, 18 Jan 2016 17:45:56 +0000 (15:45 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Fri, 29 Jan 2016 20:20:39 +0000 (18:20 -0200)
commit9b42281f9ddafe459e0b0d91ddf1939fbf84d832
treef73e8e34d6b8f999738c3dde3c9f5e49de664b76
parente8216e502acaad129210c3c8b30cb4ab41e70239
drm/i915/fbc: don't store/check a pointer to the FB

We already make sure we run intel_fbc_update_update during modesets
and page flips, and this function takes care of deactivating FBC, so
it shouldn't be possible for us to reach the condition we check at
intel_fbc_work_fn. So instead of grabbing framebuffer references and
adding a lot of code to track when we need to free them, just don't
track anything at all since we shouldn't need to.

v2: Rebase.

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/1453210558-7875-25-git-send-email-paulo.r.zanoni@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/intel_fbc.c