winsys/svga: Fix prime surface references also for guest-backed surfaces
authorThomas Hellstrom <thellstrom@vmware.com>
Mon, 7 Apr 2014 07:56:42 +0000 (00:56 -0700)
committerThomas Hellstrom <thellstrom@vmware.com>
Mon, 7 Apr 2014 10:34:52 +0000 (03:34 -0700)
commit2f6fcd65f2401695427bcbf1f2bd428d466ecda0
tree153cf56d39a727597e86674d304afbf7a92e9fce
parent0887b499e95b0103fa01614cbc9988f0b15c75d6
winsys/svga: Fix prime surface references also for guest-backed surfaces

Implement guest-backed surface sharing using prime fds. Previously only
legacy surfaces could use this functionality. Also use the vmwgfx 2.6
single-ioctl prime fd reference if available.

Cc: "10.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
src/gallium/winsys/svga/drm/vmw_screen.h
src/gallium/winsys/svga/drm/vmw_screen_dri.c
src/gallium/winsys/svga/drm/vmw_screen_ioctl.c