diff options
author | Jakob Bornecrantz <jakob@vmware.com> | 2011-11-09 10:25:28 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2011-11-11 10:58:26 +0000 |
commit | baa91d640034dd8d0b58a9088f5fefe5cec3c8c4 (patch) | |
tree | 99eec6ddc06baf6b8e6110dda9faea9391aa3f6e /drivers/gpu/drm | |
parent | f0c8a6524dca1d37ab7b0247aa7681e490af1ee4 (diff) |
vmwgfx: Only allow 64x64 cursors
Snooping code expects this to be the case.
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c index 40c7e617e28b..880e285d7578 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c @@ -105,6 +105,10 @@ int vmw_du_crtc_cursor_set(struct drm_crtc *crtc, struct drm_file *file_priv, struct vmw_dma_buffer *dmabuf = NULL; int ret; + /* A lot of the code assumes this */ + if (handle && (width != 64 || height != 64)) + return -EINVAL; + if (handle) { ret = vmw_user_surface_lookup_handle(dev_priv, tfile, handle, &surface); |