drm/vmwgfx: Allow prime fds in the surface reference ioctls
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 18 Mar 2014 14:00:56 +0000 (15:00 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Fri, 28 Mar 2014 13:19:03 +0000 (14:19 +0100)
commitadebcb20e4ca9330a293c294e1f104edba21dbaf
tree09afc68d6963a27e8f2e2e38263e3cd8b6b2c25f
parent4649926d043205d3693551b36e2ed88a264177a5
drm/vmwgfx: Allow prime fds in the surface reference ioctls

Allow prime fds and at the same time block legacy handles for render-nodes
in the surface reference ioctls. This means these ioctls can be used
directly from prime-aware clients, and that they can be called from
render-nodes.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c
include/uapi/drm/vmwgfx_drm.h