summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f0c8a65)
raw | patch | inline | side by side (parent: f0c8a65)
author | Jakob Bornecrantz <jakob@vmware.com> | |
Wed, 9 Nov 2011 09:25:28 +0000 (10:25 +0100) | ||
committer | Dave Airlie <airlied@redhat.com> | |
Fri, 11 Nov 2011 10:58:26 +0000 (10:58 +0000) |
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>
Signed-off-by: Jakob Bornecrantz <jakob@vmware.com>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | patch | blob | history |
index 40c7e617e28b943fda6b160d098104be5b24df45..880e285d7578afa3ebeae75de4dad77443d754ce 100644 (file)
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);