Skip to content

Commit

Permalink
drm/i915: Nuke ORIGIN_GTT
Browse files Browse the repository at this point in the history
BugLink: https://bugs.launchpad.net/bugs/1978252

There is no users of it, so no need to keep handling for it.

Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Cc: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210815014346.373945-2-jose.souza@intel.com
(cherry picked from commit bbaafe5)
Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Timo Aaltonen <timo.aaltonen@canonical.com>
  • Loading branch information
José Roberto de Souza authored and Chia-Lin Kao (AceLan) committed Jun 16, 2022
1 parent ffea757 commit 6154356
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
10 changes: 1 addition & 9 deletions drivers/gpu/drm/i915/display/intel_fbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ void intel_fbc_invalidate(struct drm_i915_private *dev_priv,
if (!HAS_FBC(dev_priv))
return;

if (origin == ORIGIN_GTT || origin == ORIGIN_FLIP)
if (origin == ORIGIN_FLIP)
return;

mutex_lock(&fbc->lock);
Expand All @@ -1157,14 +1157,6 @@ void intel_fbc_flush(struct drm_i915_private *dev_priv,
if (!HAS_FBC(dev_priv))
return;

/*
* GTT tracking does not nuke the entire cfb
* so don't clear busy_bits set for some other
* reason.
*/
if (origin == ORIGIN_GTT)
return;

mutex_lock(&fbc->lock);

fbc->busy_bits &= ~frontbuffer_bits;
Expand Down
3 changes: 1 addition & 2 deletions drivers/gpu/drm/i915/display/intel_frontbuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
struct drm_i915_private;

enum fb_op_origin {
ORIGIN_GTT,
ORIGIN_CPU,
ORIGIN_CPU = 0,
ORIGIN_CS,
ORIGIN_FLIP,
ORIGIN_DIRTYFB,
Expand Down

0 comments on commit 6154356

Please sign in to comment.