drm/i915: Nuke ORIGIN_GTT
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
This commit is contained in:
@@ -1129,7 +1129,7 @@ void intel_fbc_invalidate(struct drm_i915_private *dev_priv,
|
|||||||
if (!HAS_FBC(dev_priv))
|
if (!HAS_FBC(dev_priv))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (origin == ORIGIN_GTT || origin == ORIGIN_FLIP)
|
if (origin == ORIGIN_FLIP)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
mutex_lock(&fbc->lock);
|
mutex_lock(&fbc->lock);
|
||||||
@@ -1150,14 +1150,6 @@ void intel_fbc_flush(struct drm_i915_private *dev_priv,
|
|||||||
if (!HAS_FBC(dev_priv))
|
if (!HAS_FBC(dev_priv))
|
||||||
return;
|
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);
|
mutex_lock(&fbc->lock);
|
||||||
|
|
||||||
fbc->busy_bits &= ~frontbuffer_bits;
|
fbc->busy_bits &= ~frontbuffer_bits;
|
||||||
|
|||||||
@@ -33,8 +33,7 @@
|
|||||||
struct drm_i915_private;
|
struct drm_i915_private;
|
||||||
|
|
||||||
enum fb_op_origin {
|
enum fb_op_origin {
|
||||||
ORIGIN_GTT,
|
ORIGIN_CPU = 0,
|
||||||
ORIGIN_CPU,
|
|
||||||
ORIGIN_CS,
|
ORIGIN_CS,
|
||||||
ORIGIN_FLIP,
|
ORIGIN_FLIP,
|
||||||
ORIGIN_DIRTYFB,
|
ORIGIN_DIRTYFB,
|
||||||
|
|||||||
Reference in New Issue
Block a user