drm/i915: only recompress FBC after flushing a drawing operation
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 11 Nov 2015 16:46:22 +0000 (14:46 -0200)
committerPaulo Zanoni <paulo.r.zanoni@intel.com>
Thu, 3 Dec 2015 13:38:11 +0000 (11:38 -0200)
commitee7d6cfa4b15aafa1d87f913572f30dd64cdd85a
tree8198a7ef33520aa1667dbac4ad61c0efe619603a
parent820bcabbf0acce7f3e7b72ed5e51b0a1d9c2046d
drm/i915: only recompress FBC after flushing a drawing operation

There's no need to stop and restart FBC, which is quite expensive as
we have to revalidate the CRTC state. After flushing a drawing
operation we know the CRTC state hasn't changed, so a nuke
(recompress) should be fine.

v2: Make it simpler (Chris).
v3: Rewrite the patch again due to patch order changes.
v4: Rewrite commit message (Chris).

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/
drivers/gpu/drm/i915/intel_fbc.c