diff options
author | Dave Airlie <airlied@redhat.com> | 2013-12-13 12:03:52 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-12-13 12:03:52 +1000 |
commit | 0ca9fff744c8ae22401d1ef10a378588afd55abc (patch) | |
tree | f78f01333f7f0c9ce684bfc2b793c2ae6d0977bb | |
parent | 7fc61f845859fdca5a2c85a45eb39ce57cdd2276 (diff) | |
parent | 11e6a09fba446ce799a9de51d2d99586024bbdaa (diff) | |
download | op-kernel-dev-0ca9fff744c8ae22401d1ef10a378588afd55abc.zip op-kernel-dev-0ca9fff744c8ae22401d1ef10a378588afd55abc.tar.gz |
Merge branch 'vmwgfx-fixes-3.13' of git://people.freedesktop.org/~thomash/linux into drm-fixes
Part of a driver stack fix that fixes surface overcommiting on single execbuf calls.
* 'vmwgfx-fixes-3.13' of git://people.freedesktop.org/~thomash/linux:
drm/vmwgfx: Add max surface memory param
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 3 | ||||
-rw-r--r-- | include/uapi/drm/vmwgfx_drm.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c index a51f48e..45d5b5a 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); diff --git a/include/uapi/drm/vmwgfx_drm.h b/include/uapi/drm/vmwgfx_drm.h index bcb0912..f854ca4 100644 --- a/include/uapi/drm/vmwgfx_drm.h +++ b/include/uapi/drm/vmwgfx_drm.h @@ -75,6 +75,7 @@ #define DRM_VMW_PARAM_FIFO_CAPS 4 #define DRM_VMW_PARAM_MAX_FB_SIZE 5 #define DRM_VMW_PARAM_FIFO_HW_VERSION 6 +#define DRM_VMW_PARAM_MAX_SURF_MEMORY 7 /** * struct drm_vmw_getparam_arg |