diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2013-12-09 08:39:04 +0100 |
---|---|---|
committer | Thomas Hellstrom <thellstrom@vmware.com> | 2013-12-09 08:50:23 +0100 |
commit | 11e6a09fba446ce799a9de51d2d99586024bbdaa (patch) | |
tree | 44085cf544577b3d033801e73b02a8d527f04177 /drivers/gpu | |
parent | Merge branch 'drm-fixes-3.13' of git://people.freedesktop.org/~agd5f/linux in... (diff) | |
download | linux-11e6a09fba446ce799a9de51d2d99586024bbdaa.tar.xz linux-11e6a09fba446ce799a9de51d2d99586024bbdaa.zip |
drm/vmwgfx: Add max surface memory param
Userspace uses this to workaround overcommit issues
by flushing the command stream early.
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c index a51f48e3e917..45d5b5ab6ca9 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c @@ -68,6 +68,9 @@ int vmw_getparam_ioctl(struct drm_device *dev, void *data, SVGA_FIFO_3D_HWVERSION)); break; } + case DRM_VMW_PARAM_MAX_SURF_MEMORY: + param->value = dev_priv->memory_size; + break; default: DRM_ERROR("Illegal vmwgfx get param request: %d\n", param->param); |