aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hellstrom <thellstrom@vmware.com>2015-08-12 12:30:09 -0400
committerThomas Hellstrom <thellstrom@vmware.com>2015-08-12 13:05:44 -0400
commitdf45e9d410fc07ab816b006414f52ec4e2fbf2d7 (patch)
treed445ce6f8892493e35fd343038618aba10a7ef02
parent65ade7d34bb6436104f1fdcce899bd81707da2e1 (diff)
drm/vmwgfx: Fix framebuffer creation on older hardware
On older hardware, texture max width and height is not available, so set it to something reasonable, like 8192. Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by: Sinclair Yeh <syeh@vmware.com>
-rw-r--r--drivers/gpu/drm/vmwgfx/vmwgfx_drv.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
index ab67d2a73516..bc4235f75f61 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
@@ -707,9 +707,12 @@ static int vmw_driver_load(struct drm_device *dev, unsigned long chipset)
707 SVGA3D_DEVCAP_MAX_TEXTURE_HEIGHT); 707 SVGA3D_DEVCAP_MAX_TEXTURE_HEIGHT);
708 dev_priv->texture_max_height = vmw_read(dev_priv, 708 dev_priv->texture_max_height = vmw_read(dev_priv,
709 SVGA_REG_DEV_CAP); 709 SVGA_REG_DEV_CAP);
710 } else 710 } else {
711 dev_priv->texture_max_width = 8192;
712 dev_priv->texture_max_height = 8192;
711 dev_priv->prim_bb_mem = dev_priv->vram_size; 713 dev_priv->prim_bb_mem = dev_priv->vram_size;
712 714 }
715
713 vmw_print_capabilities(dev_priv->capabilities); 716 vmw_print_capabilities(dev_priv->capabilities);
714 717
715 ret = vmw_dma_masks(dev_priv); 718 ret = vmw_dma_masks(dev_priv);