@@ -842,7 +842,7 @@ static void dsi_ctrl_config(struct msm_dsi_host *msm_host, bool enable,
842
842
static void dsi_update_dsc_timing (struct msm_dsi_host * msm_host , bool is_cmd_mode , u32 hdisplay )
843
843
{
844
844
struct drm_dsc_config * dsc = msm_host -> dsc ;
845
- u32 reg , intf_width , reg_ctrl , reg_ctrl2 ;
845
+ u32 reg , reg_ctrl , reg_ctrl2 ;
846
846
u32 slice_per_intf , total_bytes_per_intf ;
847
847
u32 pkt_per_line ;
848
848
u32 bytes_in_slice ;
@@ -851,8 +851,7 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod
851
851
/* first calculate dsc parameters and then program
852
852
* compress mode registers
853
853
*/
854
- intf_width = hdisplay ;
855
- slice_per_intf = DIV_ROUND_UP (intf_width , dsc -> slice_width );
854
+ slice_per_intf = DIV_ROUND_UP (hdisplay , dsc -> slice_width );
856
855
857
856
/* If slice_per_pkt is greater than slice_per_intf
858
857
* then default to 1. This can happen during partial
@@ -861,7 +860,6 @@ static void dsi_update_dsc_timing(struct msm_dsi_host *msm_host, bool is_cmd_mod
861
860
if (slice_per_intf > dsc -> slice_count )
862
861
dsc -> slice_count = 1 ;
863
862
864
- slice_per_intf = DIV_ROUND_UP (hdisplay , dsc -> slice_width );
865
863
bytes_in_slice = DIV_ROUND_UP (dsc -> slice_width * dsc -> bits_per_pixel , 8 );
866
864
867
865
dsc -> slice_chunk_size = bytes_in_slice ;
0 commit comments