OSDN Git Service

drm/i915/fbc: Move the "recompress on activate" to a central place
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 2 Jul 2021 20:45:58 +0000 (23:45 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 20 Aug 2021 13:49:30 +0000 (16:49 +0300)
commitcd4891e4f78b1ed77e86500d9dc69262b25b56e4
tree3efc24fdb7605f8b7f967e2382dddc7bd609e4e2
parent287d00d4131e8134bc442db0863b289d86bdae8b
drm/i915/fbc: Move the "recompress on activate" to a central place

On ILK+ we current do a nuke right after activating FBC. If my
memory isn't playing tricks on me this is actially required if
FBC didn't stay disabled for a full frame. In that case the
deactivate+reactivate may not invalidate the cfb. I'd have to
double chekc to be sure though.

So let's keep the nuke, and just extend it backwards to cover
all the platforms by doing it a bit higher up.

Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210702204603.596-4-ville.syrjala@linux.intel.com
drivers/gpu/drm/i915/display/intel_fbc.c