File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
drivers/gpu/drm/msm/disp/dpu1 Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,7 @@ static u64 _dpu_plane_calc_bw(const struct dpu_mdss_cfg *catalog,
119
119
struct dpu_sw_pipe_cfg * pipe_cfg )
120
120
{
121
121
int src_width , src_height , dst_height , fps ;
122
+ u64 plane_pixel_rate , plane_bit_rate ;
122
123
u64 plane_prefill_bw ;
123
124
u64 plane_bw ;
124
125
u32 hw_latency_lines ;
@@ -136,13 +137,12 @@ static u64 _dpu_plane_calc_bw(const struct dpu_mdss_cfg *catalog,
136
137
scale_factor = src_height > dst_height ?
137
138
mult_frac (src_height , 1 , dst_height ) : 1 ;
138
139
139
- plane_bw =
140
- src_width * mode -> vtotal * fps * fmt -> bpp *
141
- scale_factor ;
140
+ plane_pixel_rate = src_width * mode -> vtotal * fps ;
141
+ plane_bit_rate = plane_pixel_rate * fmt -> bpp ;
142
142
143
- plane_prefill_bw =
144
- src_width * hw_latency_lines * fps * fmt -> bpp *
145
- scale_factor * mode -> vtotal ;
143
+ plane_bw = plane_bit_rate * scale_factor ;
144
+
145
+ plane_prefill_bw = plane_bw * hw_latency_lines ;
146
146
147
147
if ((vbp + vpw ) > hw_latency_lines )
148
148
do_div (plane_prefill_bw , (vbp + vpw ));
You can’t perform that action at this time.
0 commit comments