mirror of
https://github.com/openbsd/src.git
synced 2026-04-15 01:34:03 +00:00
drm/i915/dsi: Don't do DSC horizontal timing adjustments in command mode
From Ville Syrjala 86e926b108880c0109b8635e459450447156aeb7 in linux-6.18.y/6.18.22 4dfce79e098915d8e5fc2b9e1d980bc3251dd32c in mainline linux
This commit is contained in:
@@ -890,7 +890,7 @@ gen11_dsi_set_transcoder_timings(struct intel_encoder *encoder,
|
||||
* non-compressed link speeds, and simplifies down to the ratio between
|
||||
* compressed and non-compressed bpp.
|
||||
*/
|
||||
if (crtc_state->dsc.compression_enable) {
|
||||
if (is_vid_mode(intel_dsi) && crtc_state->dsc.compression_enable) {
|
||||
mul = fxp_q4_to_int(crtc_state->dsc.compressed_bpp_x16);
|
||||
div = mipi_dsi_pixel_format_to_bpp(intel_dsi->pixel_format);
|
||||
}
|
||||
@@ -1506,7 +1506,7 @@ static void gen11_dsi_get_timings(struct intel_encoder *encoder,
|
||||
struct drm_display_mode *adjusted_mode =
|
||||
&pipe_config->hw.adjusted_mode;
|
||||
|
||||
if (pipe_config->dsc.compressed_bpp_x16) {
|
||||
if (is_vid_mode(intel_dsi) && pipe_config->dsc.compressed_bpp_x16) {
|
||||
int div = fxp_q4_to_int(pipe_config->dsc.compressed_bpp_x16);
|
||||
int mul = mipi_dsi_pixel_format_to_bpp(intel_dsi->pixel_format);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user