drm/vmwgfx: Allow dropped masters render-node like access on legacy nodes v2
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 27 Aug 2015 17:06:24 +0000 (10:06 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Tue, 1 Sep 2015 09:06:02 +0000 (02:06 -0700)
commitaa3469ce7afd86a670d22375a64f1b5a06707725
treef36aae88ccb3d764e8ecd4e1e168fcd00ff0e43b
parent36d4e87b497d9cb3bf8e1bb2f803c7aa41dfb463
drm/vmwgfx: Allow dropped masters render-node like access on legacy nodes v2

Applications like gnome-shell may try to render after dropping master
privileges. Since the driver should now be safe against this scenario,
allow those applications to use their legacy node like a render node.

v2: Add missing return statement.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_drv.c
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c