Skip to content

Commit

Permalink
Merge branch 'vmwgfx-fixes-3.13' of git://people.freedesktop.org/~tho…
Browse files Browse the repository at this point in the history
…mash/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
  • Loading branch information
Dave Airlie committed Dec 13, 2013
2 parents 7fc61f8 + 11e6a09 commit 0ca9fff
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 0ca9fff

Please sign in to comment.