Skip to content

Commit

Permalink
Merge branch 'drm-vmwgfx-fixes-4_10' of git://people.freedesktop.org/…
Browse files Browse the repository at this point in the history
…~syeh/repos_linux into drm-fixes

Single vmwgfx boot crasher fix.

* 'drm-vmwgfx-fixes-4_10' of git://people.freedesktop.org/~syeh/repos_linux:
  drm/vmwgfx: Fix depth input into drm_mode_legacy_fb_format
  • Loading branch information
Dave Airlie committed Feb 8, 2017
2 parents d5adbfc + 242ef5d commit 5d18a61
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/gpu/drm/vmwgfx/vmwgfx_fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -481,8 +481,7 @@ static int vmw_fb_kms_framebuffer(struct fb_info *info)
mode_cmd.height = var->yres;
mode_cmd.pitches[0] = ((var->bits_per_pixel + 7) / 8) * mode_cmd.width;
mode_cmd.pixel_format =
drm_mode_legacy_fb_format(var->bits_per_pixel,
((var->bits_per_pixel + 7) / 8) * mode_cmd.width);
drm_mode_legacy_fb_format(var->bits_per_pixel, depth);

cur_fb = par->set_fb;
if (cur_fb && cur_fb->width == mode_cmd.width &&
Expand Down

0 comments on commit 5d18a61

Please sign in to comment.