Guest User

Untitled

a guest
Jul 2nd, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. --- drivers/gpu/drm/vmwgfx/vmwgfx_fb.c.orig.orig 2014-06-30 00:04:16.953481974 +0100
  2. +++ drivers/gpu/drm/vmwgfx/vmwgfx_fb.c 2014-07-02 13:54:01.282674996 +0100
  3. @@ -95,6 +95,8 @@
  4. static int vmw_fb_check_var(struct fb_var_screeninfo *var,
  5. struct fb_info *info)
  6. {
  7. + printk( KERN_INFO "fb_fix_screeninfo.line_length CODE PATH TRAVERSED\n" );
  8. +
  9. int depth = var->bits_per_pixel;
  10. struct vmw_fb_par *par = info->par;
  11. struct vmw_private *vmw_priv = par->vmw_priv;
  12. @@ -147,7 +149,7 @@
  13. }
  14.  
  15. if (!vmw_kms_validate_mode_vram(vmw_priv,
  16. - info->fix.line_length,
  17. + var->xres * var->bits_per_pixel/8,
  18. var->yoffset + var->yres)) {
  19. DRM_ERROR("Requested geom can not fit in framebuffer\n");
  20. return -EINVAL;
  21. @@ -162,6 +164,8 @@
  22. struct vmw_private *vmw_priv = par->vmw_priv;
  23. int ret;
  24.  
  25. + info->fix.line_length = info->var.xres * info->var.bits_per_pixel/8;
  26. +
  27. ret = vmw_kms_write_svga(vmw_priv, info->var.xres, info->var.yres,
  28. info->fix.line_length,
  29. par->bpp, par->depth);
  30. @@ -177,6 +181,7 @@
  31. vmw_write(vmw_priv, SVGA_REG_DISPLAY_POSITION_Y, info->var.yoffset);
  32. vmw_write(vmw_priv, SVGA_REG_DISPLAY_WIDTH, info->var.xres);
  33. vmw_write(vmw_priv, SVGA_REG_DISPLAY_HEIGHT, info->var.yres);
  34. +/* vmw_write(vmw_priv, SVGA_REG_BYTES_PER_LINE, info->fix.line_length); */
  35. vmw_write(vmw_priv, SVGA_REG_DISPLAY_ID, SVGA_ID_INVALID);
  36. }
Advertisement
Add Comment
Please, Sign In to add comment