Skip to content

Commit

Permalink
vmwgfx: Only allow 64x64 cursors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jakob Bornecrantz authored and airlied committed Nov 11, 2011
1 parent f0c8a65 commit baa91d6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/gpu/drm/vmwgfx/vmwgfx_kms.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit baa91d6

Please sign in to comment.