drm/vmwgfx: Make surfaces prime-aware
authorThomas Hellstrom <thellstrom@vmware.com>
Fri, 8 Nov 2013 10:12:51 +0000 (02:12 -0800)
committerThomas Hellstrom <thellstrom@vmware.com>
Mon, 18 Nov 2013 12:12:19 +0000 (04:12 -0800)
Add prime exporting and imporing operations to surfaces

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_resource.c
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c

index 5aace80..83be709 100644 (file)
@@ -297,7 +297,7 @@ int vmw_user_resource_lookup_handle(struct vmw_private *dev_priv,
        if (unlikely(base == NULL))
                return -EINVAL;
 
-       if (unlikely(base->object_type != converter->object_type))
+       if (unlikely(ttm_base_object_type(base) != converter->object_type))
                goto out_bad_resource;
 
        res = converter->base_obj_to_res(base);