File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed
drivers/gpu/drm/i915/display Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -2709,15 +2709,6 @@ static void intel_set_pipe_src_size(const struct intel_crtc_state *crtc_state)
2709
2709
*/
2710
2710
intel_de_write (dev_priv , PIPESRC (pipe ),
2711
2711
PIPESRC_WIDTH (width - 1 ) | PIPESRC_HEIGHT (height - 1 ));
2712
-
2713
- if (!crtc_state -> enable_psr2_su_region_et )
2714
- return ;
2715
-
2716
- width = drm_rect_width (& crtc_state -> psr2_su_area );
2717
- height = drm_rect_height (& crtc_state -> psr2_su_area );
2718
-
2719
- intel_de_write (dev_priv , PIPE_SRCSZ_ERLY_TPT (pipe ),
2720
- PIPESRC_WIDTH (width - 1 ) | PIPESRC_HEIGHT (height - 1 ));
2721
2712
}
2722
2713
2723
2714
static bool intel_pipe_is_interlaced (const struct intel_crtc_state * crtc_state )
Original file line number Diff line number Diff line change @@ -1994,6 +1994,7 @@ static void psr_force_hw_tracking_exit(struct intel_dp *intel_dp)
1994
1994
1995
1995
void intel_psr2_program_trans_man_trk_ctl (const struct intel_crtc_state * crtc_state )
1996
1996
{
1997
+ struct intel_crtc * crtc = to_intel_crtc (crtc_state -> uapi .crtc );
1997
1998
struct drm_i915_private * dev_priv = to_i915 (crtc_state -> uapi .crtc -> dev );
1998
1999
enum transcoder cpu_transcoder = crtc_state -> cpu_transcoder ;
1999
2000
struct intel_encoder * encoder ;
@@ -2013,6 +2014,12 @@ void intel_psr2_program_trans_man_trk_ctl(const struct intel_crtc_state *crtc_st
2013
2014
2014
2015
intel_de_write (dev_priv , PSR2_MAN_TRK_CTL (cpu_transcoder ),
2015
2016
crtc_state -> psr2_man_track_ctl );
2017
+
2018
+ if (!crtc_state -> enable_psr2_su_region_et )
2019
+ return ;
2020
+
2021
+ intel_de_write (dev_priv , PIPE_SRCSZ_ERLY_TPT (crtc -> pipe ),
2022
+ crtc_state -> pipe_srcsz_early_tpt );
2016
2023
}
2017
2024
2018
2025
static void psr2_man_trk_ctl_calc (struct intel_crtc_state * crtc_state ,
You can’t perform that action at this time.
0 commit comments