Skip to content

Commit

Permalink
drm/vmwgfx: Add max surface memory param
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakob Bornecrantz authored and Thomas Hellstrom committed Dec 9, 2013
1 parent 9255ce8 commit 11e6a09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 1 addition & 0 deletions include/uapi/drm/vmwgfx_drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11e6a09

Please sign in to comment.