diff options
author | Michel Dänzer <daenzer@vmware.com> | 2011-08-31 03:42:49 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-09-01 04:37:40 -0400 |
commit | 6558429bc4c7351cc3d80fc9055f1204a9adf060 (patch) | |
tree | 445a5c6d97088fb2740c775edc446b5ebdd0c4de /drivers | |
parent | e666d66b427b0ddebda890d4d60013c925332266 (diff) |
vmwgfx: Fix 'bbp' typo
Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 8 | ||||
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h index d84e7a64ba08..0c24347d56a6 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.h | |||
@@ -505,7 +505,7 @@ void vmw_kms_cursor_snoop(struct vmw_surface *srf, | |||
505 | SVGA3dCmdHeader *header); | 505 | SVGA3dCmdHeader *header); |
506 | void vmw_kms_write_svga(struct vmw_private *vmw_priv, | 506 | void vmw_kms_write_svga(struct vmw_private *vmw_priv, |
507 | unsigned width, unsigned height, unsigned pitch, | 507 | unsigned width, unsigned height, unsigned pitch, |
508 | unsigned bbp, unsigned depth); | 508 | unsigned bpp, unsigned depth); |
509 | int vmw_kms_update_layout_ioctl(struct drm_device *dev, void *data, | 509 | int vmw_kms_update_layout_ioctl(struct drm_device *dev, void *data, |
510 | struct drm_file *file_priv); | 510 | struct drm_file *file_priv); |
511 | void vmw_kms_idle_workqueues(struct vmw_master *vmaster); | 511 | void vmw_kms_idle_workqueues(struct vmw_master *vmaster); |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c index bfab60c938ac..5fb80b138e80 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | |||
@@ -405,14 +405,14 @@ int vmw_fb_init(struct vmw_private *vmw_priv) | |||
405 | struct fb_info *info; | 405 | struct fb_info *info; |
406 | unsigned initial_width, initial_height; | 406 | unsigned initial_width, initial_height; |
407 | unsigned fb_width, fb_height; | 407 | unsigned fb_width, fb_height; |
408 | unsigned fb_bbp, fb_depth, fb_offset, fb_pitch, fb_size; | 408 | unsigned fb_bpp, fb_depth, fb_offset, fb_pitch, fb_size; |
409 | int ret; | 409 | int ret; |
410 | 410 | ||
411 | /* XXX These shouldn't be hardcoded. */ | 411 | /* XXX These shouldn't be hardcoded. */ |
412 | initial_width = 800; | 412 | initial_width = 800; |
413 | initial_height = 600; | 413 | initial_height = 600; |
414 | 414 | ||
415 | fb_bbp = 32; | 415 | fb_bpp = 32; |
416 | fb_depth = 24; | 416 | fb_depth = 24; |
417 | 417 | ||
418 | /* XXX As shouldn't these be as well. */ | 418 | /* XXX As shouldn't these be as well. */ |
@@ -422,7 +422,7 @@ int vmw_fb_init(struct vmw_private *vmw_priv) | |||
422 | initial_width = min(fb_width, initial_width); | 422 | initial_width = min(fb_width, initial_width); |
423 | initial_height = min(fb_height, initial_height); | 423 | initial_height = min(fb_height, initial_height); |
424 | 424 | ||
425 | fb_pitch = fb_width * fb_bbp / 8; | 425 | fb_pitch = fb_width * fb_bpp / 8; |
426 | fb_size = fb_pitch * fb_height; | 426 | fb_size = fb_pitch * fb_height; |
427 | fb_offset = vmw_read(vmw_priv, SVGA_REG_FB_OFFSET); | 427 | fb_offset = vmw_read(vmw_priv, SVGA_REG_FB_OFFSET); |
428 | 428 | ||
@@ -437,7 +437,7 @@ int vmw_fb_init(struct vmw_private *vmw_priv) | |||
437 | par = info->par; | 437 | par = info->par; |
438 | par->vmw_priv = vmw_priv; | 438 | par->vmw_priv = vmw_priv; |
439 | par->depth = fb_depth; | 439 | par->depth = fb_depth; |
440 | par->bpp = fb_bbp; | 440 | par->bpp = fb_bpp; |
441 | par->vmalloc = NULL; | 441 | par->vmalloc = NULL; |
442 | par->max_width = fb_width; | 442 | par->max_width = fb_width; |
443 | par->max_height = fb_height; | 443 | par->max_height = fb_height; |
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 97654075039b..be8163b8f1ae 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | |||
@@ -992,7 +992,7 @@ out: | |||
992 | 992 | ||
993 | void vmw_kms_write_svga(struct vmw_private *vmw_priv, | 993 | void vmw_kms_write_svga(struct vmw_private *vmw_priv, |
994 | unsigned width, unsigned height, unsigned pitch, | 994 | unsigned width, unsigned height, unsigned pitch, |
995 | unsigned bbp, unsigned depth) | 995 | unsigned bpp, unsigned depth) |
996 | { | 996 | { |
997 | if (vmw_priv->capabilities & SVGA_CAP_PITCHLOCK) | 997 | if (vmw_priv->capabilities & SVGA_CAP_PITCHLOCK) |
998 | vmw_write(vmw_priv, SVGA_REG_PITCHLOCK, pitch); | 998 | vmw_write(vmw_priv, SVGA_REG_PITCHLOCK, pitch); |
@@ -1000,7 +1000,7 @@ void vmw_kms_write_svga(struct vmw_private *vmw_priv, | |||
1000 | iowrite32(pitch, vmw_priv->mmio_virt + SVGA_FIFO_PITCHLOCK); | 1000 | iowrite32(pitch, vmw_priv->mmio_virt + SVGA_FIFO_PITCHLOCK); |
1001 | vmw_write(vmw_priv, SVGA_REG_WIDTH, width); | 1001 | vmw_write(vmw_priv, SVGA_REG_WIDTH, width); |
1002 | vmw_write(vmw_priv, SVGA_REG_HEIGHT, height); | 1002 | vmw_write(vmw_priv, SVGA_REG_HEIGHT, height); |
1003 | vmw_write(vmw_priv, SVGA_REG_BITS_PER_PIXEL, bbp); | 1003 | vmw_write(vmw_priv, SVGA_REG_BITS_PER_PIXEL, bpp); |
1004 | } | 1004 | } |
1005 | 1005 | ||
1006 | int vmw_kms_save_vga(struct vmw_private *vmw_priv) | 1006 | int vmw_kms_save_vga(struct vmw_private *vmw_priv) |