diff options
Diffstat (limited to 'drivers/video/intelfb/intelfbdrv.c')
-rw-r--r-- | drivers/video/intelfb/intelfbdrv.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c index 2aba6a4a9eae..b92bc908335e 100644 --- a/drivers/video/intelfb/intelfbdrv.c +++ b/drivers/video/intelfb/intelfbdrv.c | |||
@@ -1141,7 +1141,10 @@ update_dinfo(struct intelfb_info *dinfo, struct fb_var_screeninfo *var) | |||
1141 | } | 1141 | } |
1142 | 1142 | ||
1143 | /* Make sure the line length is a aligned correctly. */ | 1143 | /* Make sure the line length is a aligned correctly. */ |
1144 | dinfo->pitch = ROUND_UP_TO(dinfo->pitch, STRIDE_ALIGNMENT); | 1144 | if (IS_I9XX(dinfo)) |
1145 | dinfo->pitch = ROUND_UP_TO(dinfo->pitch, STRIDE_ALIGNMENT_I9XX); | ||
1146 | else | ||
1147 | dinfo->pitch = ROUND_UP_TO(dinfo->pitch, STRIDE_ALIGNMENT); | ||
1145 | 1148 | ||
1146 | if (FIXED_MODE(dinfo)) | 1149 | if (FIXED_MODE(dinfo)) |
1147 | dinfo->pitch = dinfo->initial_pitch; | 1150 | dinfo->pitch = dinfo->initial_pitch; |