Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 365722 Details for
Bug 494794
sys-kernel/gentoo-sources - vmwgfx: correct fb_fix_screeninfo.line_length in check_var(), set_par()
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch against linux-3.10.7-gentoo
linux-3.10.7-gentoo-vmwgfx-correct-line-length.patch (text/plain), 1.22 KB, created by
Christopher Friedt
on 2013-12-20 04:01:51 UTC
(
hide
)
Description:
patch against linux-3.10.7-gentoo
Filename:
MIME Type:
Creator:
Christopher Friedt
Created:
2013-12-20 04:01:51 UTC
Size:
1.22 KB
patch
obsolete
>diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c >index ed5ce2a..021b522 100644 >--- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c >+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c >@@ -147,7 +147,7 @@ static int vmw_fb_check_var(struct fb_var_screeninfo *var, > } > > if (!vmw_kms_validate_mode_vram(vmw_priv, >- info->fix.line_length, >+ var->xres * var->bits_per_pixel/8, > var->yoffset + var->yres)) { > DRM_ERROR("Requested geom can not fit in framebuffer\n"); > return -EINVAL; >@@ -162,6 +162,8 @@ static int vmw_fb_set_par(struct fb_info *info) > struct vmw_private *vmw_priv = par->vmw_priv; > int ret; > >+ info->fix.line_length = info->var.xres * info->var.bits_per_pixel/8; >+ > ret = vmw_kms_write_svga(vmw_priv, info->var.xres, info->var.yres, > info->fix.line_length, > par->bpp, par->depth); >@@ -177,6 +179,7 @@ static int vmw_fb_set_par(struct fb_info *info) > vmw_write(vmw_priv, SVGA_REG_DISPLAY_POSITION_Y, info->var.yoffset); > vmw_write(vmw_priv, SVGA_REG_DISPLAY_WIDTH, info->var.xres); > vmw_write(vmw_priv, SVGA_REG_DISPLAY_HEIGHT, info->var.yres); >+ vmw_write(vmw_priv, SVGA_REG_BYTES_PER_LINE, info->fix.line_length); > vmw_write(vmw_priv, SVGA_REG_DISPLAY_ID, SVGA_ID_INVALID); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 494794
: 365722 |
365724
|
365726
|
365728
|
365730
|
365732
|
365734