Skip to content

Commit fd8a5b2

Browse files
committed
drm/i915/bios: fill in DSC rc_model_size from VBT
The VBT fields match the DPCD data, so use the same helper. Cc: Manasi Navare <manasi.d.navare@intel.com> Cc: Vandita Kulkarni <vandita.kulkarni@intel.com> Reviewed-by: Manasi Navare <manasi.d.navare@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/43fba75d89525413aed0bdbb082c26b09458bd46.1607429866.git.jani.nikula@intel.com
1 parent a8f65ba commit fd8a5b2

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,16 +2555,11 @@ static void fill_dsc(struct intel_crtc_state *crtc_state,
25552555
crtc_state->dsc.slice_count);
25562556

25572557
/*
2558-
* FIXME: Use VBT rc_buffer_block_size and rc_buffer_size for the
2559-
* implementation specific physical rate buffer size. Currently we use
2560-
* the required rate buffer model size calculated in
2561-
* drm_dsc_compute_rc_parameters() according to VESA DSC Annex E.
2562-
*
25632558
* The VBT rc_buffer_block_size and rc_buffer_size definitions
2564-
* correspond to DP 1.4 DPCD offsets 0x62 and 0x63. The DP DSC
2565-
* implementation should also use the DPCD (or perhaps VBT for eDP)
2566-
* provided value for the buffer size.
2559+
* correspond to DP 1.4 DPCD offsets 0x62 and 0x63.
25672560
*/
2561+
vdsc_cfg->rc_model_size = drm_dsc_dp_rc_buffer_size(dsc->rc_buffer_block_size,
2562+
dsc->rc_buffer_size);
25682563

25692564
/* FIXME: DSI spec says bpc + 1 for this one */
25702565
vdsc_cfg->line_buf_depth = VBT_DSC_LINE_BUFFER_DEPTH(dsc->line_buffer_depth);

0 commit comments

Comments
 (0)