svga/winsys: Propagate surface shared information to the winsys
The linux winsys needs to know whether a surface is shared. For guest-backed surfaces we need this information to avoid allocating a mob out of the mob cache for shared surfaces, but instead allocate a shared mob, that is never put in the mob cache, from the kernel. Also previously, all surfaces were given the "shareable" attribute when allocated from the kernel. This is too permissive for client-local surfaces. Now that we have the needed info, only set the "shareable" attribute if the client indicates that it needs to share the surface. Signed-off-by:Thomas Hellstrom <thellstrom@vmware.com> Reviewed-by:
Jakob Bornecrantz <jakob@vmware.com> Reviewed-by:
Brian Paul <brianp@vmware.com> Cc: "10.1" <mesa-stable@lists.freedesktop.org> (cherry picked from commit 141e39a8)
Showing
- src/gallium/drivers/svga/svga_screen_cache.c 2 additions, 0 deletionssrc/gallium/drivers/svga/svga_screen_cache.c
- src/gallium/drivers/svga/svga_winsys.h 13 additions, 2 deletionssrc/gallium/drivers/svga/svga_winsys.h
- src/gallium/winsys/svga/drm/vmw_screen.h 7 additions, 5 deletionssrc/gallium/winsys/svga/drm/vmw_screen.h
- src/gallium/winsys/svga/drm/vmw_screen_ioctl.c 9 additions, 6 deletionssrc/gallium/winsys/svga/drm/vmw_screen_ioctl.c
- src/gallium/winsys/svga/drm/vmw_screen_svga.c 13 additions, 13 deletionssrc/gallium/winsys/svga/drm/vmw_screen_svga.c
Loading
Please register or sign in to comment