diff options
author | Thomas Hellstrom <thellstrom@vmware.com> | 2012-11-21 04:32:36 -0500 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2014-01-17 01:52:16 -0500 |
commit | bc2d6508abefb3d6f3a2188dece555ce4108d3d3 (patch) | |
tree | cf22ddf749742801857bf11621bc06c4c75e49fc /drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | |
parent | cfe4d53eee81878ded963e76957f4aeed85f0a82 (diff) |
drm/vmwgfx: Replace vram_size with prim_bb_mem for calculation of max resolution
In the future, Scanout buffers need not be backed by VRAM and
the two definitions will differ.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Zack Rusin <zackr@vmware.com>
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c index a51f48e3e917..e308e9eafbb1 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | |||
@@ -53,7 +53,7 @@ int vmw_getparam_ioctl(struct drm_device *dev, void *data, | |||
53 | param->value = dev_priv->fifo.capabilities; | 53 | param->value = dev_priv->fifo.capabilities; |
54 | break; | 54 | break; |
55 | case DRM_VMW_PARAM_MAX_FB_SIZE: | 55 | case DRM_VMW_PARAM_MAX_FB_SIZE: |
56 | param->value = dev_priv->vram_size; | 56 | param->value = dev_priv->prim_bb_mem; |
57 | break; | 57 | break; |
58 | case DRM_VMW_PARAM_FIFO_HW_VERSION: | 58 | case DRM_VMW_PARAM_FIFO_HW_VERSION: |
59 | { | 59 | { |