diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2016-01-18 15:45:56 -0200 |
---|---|---|
committer | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2016-01-29 18:20:39 -0200 |
commit | 9b42281f9ddafe459e0b0d91ddf1939fbf84d832 (patch) | |
tree | f73e8e34d6b8f999738c3dde3c9f5e49de664b76 /drivers/gpu/drm/i915/i915_drv.h | |
parent | e8216e502acaad129210c3c8b30cb4ab41e70239 (diff) | |
download | op-kernel-dev-9b42281f9ddafe459e0b0d91ddf1939fbf84d832.zip op-kernel-dev-9b42281f9ddafe459e0b0d91ddf1939fbf84d832.tar.gz |
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
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_drv.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 52cd352..c921ad8 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -961,7 +961,6 @@ struct intel_fbc { bool scheduled; u32 scheduled_vblank; struct work_struct work; - struct drm_framebuffer *fb; } work; const char *no_fbc_reason; |