Skip to content

Commit 42ae1f8

Browse files
committed
drm/i915/fbc: Reduce fbc1 compression interval to 1 second
The default fbc1 compression interval we use is 500 frames. That translates to over 8 seconds typically. That's rather excessive so let's drop it to 1 second. The hardware will not attempt recompression unless at least one line has been modified, so a shorter compression interval should not cause extra bandwidth use in the purely idle scenario. Of course in the mostly idle case we are possibly going to recompress a bit more. Should really try to find some kind of sweet spot to minimize the energy usage... Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Reviewed-by: José Roberto de Souza <[email protected]>
1 parent a68ce21 commit 42ae1f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpu/drm/i915/display/intel_fbc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,8 @@ static void intel_fbc_update_state_cache(struct intel_crtc *crtc,
698698
cache->fb.stride = fb->pitches[0];
699699
cache->fb.modifier = fb->modifier;
700700

701-
/* This value was pulled out of someone's hat */
702-
cache->interval = 500;
701+
/* FBC1 compression interval: arbitrary choice of 1 second */
702+
cache->interval = drm_mode_vrefresh(&crtc_state->hw.adjusted_mode);
703703

704704
cache->fence_y_offset = intel_plane_fence_y_offset(plane_state);
705705

0 commit comments

Comments
 (0)